]>
git.saurik.com Git - wxWidgets.git/blob - interface/statbox.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxStaticBox
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} -->
32 class wxStaticBox
: public wxControl
41 Constructor, creating and showing a static box.
44 Parent window. Must not be @NULL.
46 Window identifier. The value wxID_ANY indicates a default value.
48 Text to be displayed in the static box, the empty string for no label.
50 Window position. If wxDefaultPosition is specified then a default
53 Checkbox size. If the size (-1, -1) is specified then a default size is
56 Window style. See wxStaticBox.
62 wxStaticBox(wxWindow
* parent
, wxWindowID id
,
63 const wxString
& label
,
64 const wxPoint
& pos
= wxDefaultPosition
,
65 const wxSize
& size
= wxDefaultSize
,
67 const wxString
& name
= "staticBox");
70 Destructor, destroying the group box.
75 Creates the static box for two-step construction. See wxStaticBox()
78 bool Create(wxWindow
* parent
, wxWindowID id
,
79 const wxString
& label
,
80 const wxPoint
& pos
= wxDefaultPosition
,
81 const wxSize
& size
= wxDefaultSize
,
83 const wxString
& name
= "staticBox");