Recommend using wxStaticBox as parent more strongly

Not doing it, i.e. creating the window inside the static box as its
siblings, rather than children, may appear to work, but actually doesn't
always do it, for example the windows are not shown correctly when using
RTL locale.

Closes #19086.
This commit is contained in:
Vadim Zeitlin
2021-03-05 22:53:27 +01:00
parent c1fa4cc7be
commit 3c92573dd7
2 changed files with 9 additions and 13 deletions

View File

@@ -1892,7 +1892,7 @@ public:
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.1 you are encouraged to create the windows
Note that since wxWidgets 2.9.1 you are strongly encouraged to create the windows
which are added to wxStaticBoxSizer as children of wxStaticBox itself, see
this class documentation for more details.