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