standard dialogs captions (was: ANN: wxWidgets 2.7.1 released)

Vadim Zeitlin vadim at wxwindows.org
Wed Nov 1 06:31:40 PST 2006


On Wed, 01 Nov 2006 10:55:06 +0100 Troels <tk at tk.tk> wrote:

T> Before 2.7, you could control the message box default caption, like this
T> wxMessageBoxCaptionStr = wxStrdup(_("Message")));
T> or
T> wxMessageBoxCaptionStr = wxStrdup(GetAppName());

 This was *never* supported.

T> In 2.7.x, it's hardwired to wx("Message").
T> 
T>  >I don't believe these messages were ever
T>  >supposed to be modifiable from outside the library.
T> 
T> Flexible is better...

 Flexible API is better. The above is not flexible, but just a dirty hack
which happened to work by chance before.

T>  > But they should indeed be translated.
T> 
T> ...Translated or not, the default caption "Message" is not likely to 
T> please many.

 I agree with this and I also think we should allow customizing this but
directly changing a private variable is not the right way to do it.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list