X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3289ffb1f7733a10f3e82a977678b5994acbc36..97d13342cc2ac77e21c38115cc6ebecac930f92a:/interface/wx/sizer.h diff --git a/interface/wx/sizer.h b/interface/wx/sizer.h index 2e37e10f9d..9fbb06d67b 100644 --- a/interface/wx/sizer.h +++ b/interface/wx/sizer.h @@ -1642,6 +1642,19 @@ public: The static box may be either created independently or the sizer may create it itself as a convenience. In any case, the sizer owns the wxStaticBox control and will delete it in the wxStaticBoxSizer destructor. + + Note that since wxWidgets 2.9.0 you are encouraged to build the windows which are + placed inside wxStaticBoxes as children of the wxStaticBox itself: + @code + ... + wxStaticBoxSizer *sz = new wxStaticBoxSizer(wxVERTICAL, parentWindow, "StaticBox"); + sz->Add(new wxStaticText(sz->GetStaticBox(), "This window is a child of the staticbox")); + ... + @endcode + + Creating the windows which are placed inside wxStaticBoxes as siblings of the + wxStaticBox is still allowed but it's deprecated as it gives some problems + (e.g. relative to tooltips) on some ports. @library{wxcore} @category{winlayout}