X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fname_format_editor.h;h=ab4787f64a5349021ca10ef43286c55ab9a1e794;hb=479cab0437a14f9fbf5949a6334d43eb384168ad;hp=ee88d46b3f83213c13935b97340ad2dee2c4f2d3;hpb=736b3a068ba5a402b541d32f270669e6e1a4e5c4;p=dcpomatic.git diff --git a/src/wx/name_format_editor.h b/src/wx/name_format_editor.h index ee88d46b3..ab4787f64 100644 --- a/src/wx/name_format_editor.h +++ b/src/wx/name_format_editor.h @@ -76,7 +76,17 @@ private: virtual void update_example () { _name.set_specification (wx_to_std (_specification->GetValue ())); - _example->SetLabel (wxString::Format (_("e.g. %s"), _name.get (_example_values))); + + wxString example = wxString::Format (_("e.g. %s"), _name.get (_example_values)); + wxString wrapped; + for (size_t i = 0; i < example.Length(); ++i) { + if (i > 0 && (i % 30) == 0) { + wrapped += "\n"; + } + wrapped += example[i]; + } + + _example->SetLabel (wrapped); } wxPanel* _panel;