]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use static box as a parent
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Jul 2001 08:27:42 +0000 (08:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Jul 2001 08:27:42 +0000 (08:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/statbox.tex
src/msw/window.cpp

index e4c38bbe8ac2277ce6f7a245176d3865958da957..a3ce189d801ac33f51fa8e164b1c06315329dfae 100644 (file)
@@ -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}\\
index c2ab65d03e22226fa1c87cd02fcb7ceb7744a7d9..e64c745c2d009a6a19946f53d7e64be28d56dda3 100644 (file)
@@ -47,8 +47,7 @@
     #include "wx/button.h"
     #include "wx/msgdlg.h"
     #include "wx/settings.h"
-
-    #include <stdio.h>
+    #include "wx/statbox.h"
 #endif
 
 #if wxUSE_OWNER_DRAWN