]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/statbox.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxStaticBox
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 A static box is a rectangle drawn around other panel items to denote
13 a logical grouping of items.
15 Please note that a static box should @b not be used as the parent for the
16 controls it contains, instead they should be siblings of each other. Although
17 using a static box as a parent might work in some versions of wxWidgets, it
18 results in a crash under, for example, wxGTK.
20 Also, please note that because of this, the order in which you create new
21 controls is important. Create your wxStaticBox control @b before any
22 siblings that are to appear inside the wxStaticBox in order to preserve the
23 correct Z-Order of controls.
27 <!-- @appearance{staticbox.png} -->
31 class wxStaticBox
: public wxControl
40 Constructor, creating and showing a static box.
43 Parent window. Must not be @NULL.
45 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.
49 Window position. If wxDefaultPosition is specified then a default
52 Checkbox size. If the size (-1, -1) is specified then a default size is
55 Window style. See wxStaticBox.
61 wxStaticBox(wxWindow
* parent
, wxWindowID id
,
62 const wxString
& label
,
63 const wxPoint
& pos
= wxDefaultPosition
,
64 const wxSize
& size
= wxDefaultSize
,
66 const wxString
& name
= "staticBox");
69 Destructor, destroying the group box.
74 Creates the static box for two-step construction. See wxStaticBox()
77 bool Create(wxWindow
* parent
, wxWindowID id
,
78 const wxString
& label
,
79 const wxPoint
& pos
= wxDefaultPosition
,
80 const wxSize
& size
= wxDefaultSize
,
82 const wxString
& name
= "staticBox");