Add a hint about making wxProgressDialog initially wide enough

Using unbreakable spaces to achieve this looks like a hack, but seems to
be the only thing working well in practice.
This commit is contained in:
Vadim Zeitlin
2017-11-16 23:50:22 +01:00
parent d4d3222466
commit dc751d3f33

View File

@@ -220,7 +220,11 @@ public:
Fit() explicitly. However the native MSW implementation of this class Fit() explicitly. However the native MSW implementation of this class
does make the dialog shorter if the new text has fewer lines of text does make the dialog shorter if the new text has fewer lines of text
than the old one, so it is recommended to keep the number of lines of than the old one, so it is recommended to keep the number of lines of
text constant in order to avoid jarring dialog size changes. text constant in order to avoid jarring dialog size changes. You may
also want to make the initial message, specified when creating the
dialog, wide enough to avoid having to resize the dialog later, e.g. by
appending a long string of unbreakable spaces (@c wxString(L'\u00a0',
100)) to it.
@param value @param value
The new value of the progress meter. It should be less than or equal to The new value of the progress meter. It should be less than or equal to