diff --git a/docs/latex/wx/statbox.tex b/docs/latex/wx/statbox.tex index e4c38bbe8a..a3ce189d80 100644 --- a/docs/latex/wx/statbox.tex +++ b/docs/latex/wx/statbox.tex @@ -3,6 +3,11 @@ A static box is a rectangle drawn around other panel items to denote a logical grouping of items. +Please note that a static box should {\bf not} be used as the parent for the +controls it contains, instead they should be siblings of each other. Although +using a static box as a parent might work in some versions of wxWindows, it +results in a crash under, for example, wxGTK. + \wxheading{Derived from} \helpref{wxControl}{wxcontrol}\\ diff --git a/src/msw/window.cpp b/src/msw/window.cpp index c2ab65d03e..e64c745c2d 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -47,8 +47,7 @@ #include "wx/button.h" #include "wx/msgdlg.h" #include "wx/settings.h" - - #include + #include "wx/statbox.h" #endif #if wxUSE_OWNER_DRAWN