From dc751d3f3310557379e86ada76816962e102488d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 16 Nov 2017 23:50:22 +0100 Subject: [PATCH] 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. --- interface/wx/progdlg.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/interface/wx/progdlg.h b/interface/wx/progdlg.h index 8393273523..589976076d 100644 --- a/interface/wx/progdlg.h +++ b/interface/wx/progdlg.h @@ -220,7 +220,11 @@ public: Fit() explicitly. However the native MSW implementation of this class 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 - 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 The new value of the progress meter. It should be less than or equal to