]> git.saurik.com Git - wxWidgets.git/blob - interface/statbox.h
3475a407f82c0674cd7f8479e428d03455b3dc17
[wxWidgets.git] / interface / statbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: statbox.h
3 // Purpose: documentation for wxStaticBox class
4 // Author: wxWidgets team
5 // RCS-ID: $Id$
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
8
9 /**
10 @class wxStaticBox
11 @wxheader{statbox.h}
12
13 A static box is a rectangle drawn around other panel items to denote
14 a logical grouping of items.
15
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.
20
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.
25
26 @library{wxcore}
27 @category{ctrl}
28 @appearance{staticbox.png}
29
30 @seealso
31 wxStaticText
32 */
33 class wxStaticBox : public wxControl
34 {
35 public:
36 //@{
37 /**
38 Constructor, creating and showing a static box.
39
40 @param parent
41 Parent window. Must not be @NULL.
42 @param id
43 Window identifier. The value wxID_ANY indicates a default value.
44 @param label
45 Text to be displayed in the static box, the empty string for no label.
46 @param pos
47 Window position. If wxDefaultPosition is specified then a default
48 position is chosen.
49 @param size
50 Checkbox size. If the size (-1, -1) is specified then a default size is
51 chosen.
52 @param style
53 Window style. See wxStaticBox.
54 @param name
55 Window name.
56
57 @see Create()
58 */
59 wxStaticBox();
60 wxStaticBox(wxWindow* parent, wxWindowID id,
61 const wxString& label,
62 const wxPoint& pos = wxDefaultPosition,
63 const wxSize& size = wxDefaultSize,
64 long style = 0,
65 const wxString& name = "staticBox");
66 //@}
67
68 /**
69 Destructor, destroying the group box.
70 */
71 ~wxStaticBox();
72
73 /**
74 Creates the static box for two-step construction. See wxStaticBox()
75 for further details.
76 */
77 bool Create(wxWindow* parent, wxWindowID id,
78 const wxString& label,
79 const wxPoint& pos = wxDefaultPosition,
80 const wxSize& size = wxDefaultSize,
81 long style = 0,
82 const wxString& name = "staticBox");
83 };