]>
git.saurik.com Git - wxWidgets.git/blob - interface/statbox.h
5019a1b946ef4676861c581cfe3e5425135c36cb
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxStaticBox class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 A static box is a rectangle drawn around other panel items to denote
14 a logical grouping of items.
16 Please note that a static box should @b not be used as the parent for the
17 controls it contains, instead they should be siblings of each other. Although
18 using a static box as a parent might work in some versions of wxWidgets, it
19 results in a crash under, for example, wxGTK.
21 Also, please note that because of this, the order in which you create new
22 controls is important. Create your wxStaticBox control @b before any
23 siblings that are to appear inside the wxStaticBox in order to preserve the
24 correct Z-Order of controls.
28 @appearance{staticbox.png}
33 class wxStaticBox
: public wxControl
38 Constructor, creating and showing a static box.
41 Parent window. Must not be @NULL.
44 Window identifier. The value wxID_ANY indicates a default value.
47 Text to be displayed in the static box, the empty string for no label.
50 Window position. If wxDefaultPosition is specified then a default position
54 Checkbox size. If the size (-1, -1) is specified then a default size is chosen.
57 Window style. See wxStaticBox.
65 wxStaticBox(wxWindow
* parent
, wxWindowID id
,
66 const wxString
& label
,
67 const wxPoint
& pos
= wxDefaultPosition
,
68 const wxSize
& size
= wxDefaultSize
,
70 const wxString
& name
= "staticBox");
74 Destructor, destroying the group box.
79 Creates the static box for two-step construction. See wxStaticBox()
82 bool Create(wxWindow
* parent
, wxWindowID id
,
83 const wxString
& label
,
84 const wxPoint
& pos
= wxDefaultPosition
,
85 const wxSize
& size
= wxDefaultSize
,
87 const wxString
& name
= "staticBox");