standard dialogs captions

Vadim Zeitlin vadim at wxwindows.org
Wed Nov 1 07:10:47 PST 2006


On Wed, 01 Nov 2006 16:00:22 +0100 Troels <tk at tk.tk> wrote:

T>  > T> wxMessageBoxCaptionStr = wxStrdup(_("Message")));
T>  >  This was never supported.
T> 
T> Sure was, up until 2.7.0.

 I think you're confused: "happened to work" is not the same as "supported".

T> Only dirtiness here is wx exposing a global/public variable

 They are meant to be public constants, not public variables.

T> not much dirtier than say
T> 
T>      // Gets the global resources object or creates one if none exists.
T>      static wxXmlResource *Get();
T> [global function slightly disguised as member function, have very very 
T> many cousins all over wx/include/wx]

 I won't list the many advantages of using accessor functions to using
using the variables directly as I'm sure you're well aware of them already.

 Regards,
VZ

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





More information about the wx-users mailing list