]>
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 | |
7c913512 | 11 | |
23324ae1 FM |
12 | A static box is a rectangle drawn around other panel items to denote |
13 | a logical grouping of items. | |
7c913512 | 14 | |
23324ae1 FM |
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 | |
7c913512 FM |
18 | results in a crash under, for example, wxGTK. |
19 | ||
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 | |
23324ae1 | 23 | correct Z-Order of controls. |
7c913512 | 24 | |
23324ae1 FM |
25 | @library{wxcore} |
26 | @category{ctrl} | |
7e59b885 | 27 | @appearance{staticbox.png} |
7c913512 | 28 | |
e54c96f1 | 29 | @see wxStaticText |
23324ae1 FM |
30 | */ |
31 | class wxStaticBox : public wxControl | |
32 | { | |
33 | public: | |
671600d8 RR |
34 | /** |
35 | Default constructor | |
36 | */ | |
37 | wxStaticBox(); | |
4701dc09 | 38 | |
23324ae1 FM |
39 | /** |
40 | Constructor, creating and showing a static box. | |
3c4f71cc | 41 | |
7c913512 | 42 | @param parent |
4cc4bfaf | 43 | Parent window. Must not be @NULL. |
7c913512 | 44 | @param id |
4cc4bfaf | 45 | Window identifier. The value wxID_ANY indicates a default value. |
7c913512 | 46 | @param label |
4cc4bfaf | 47 | Text to be displayed in the static box, the empty string for no label. |
7c913512 | 48 | @param pos |
4701dc09 FM |
49 | Window position. |
50 | If wxDefaultPosition is specified then a default position is chosen. | |
7c913512 | 51 | @param size |
4701dc09 FM |
52 | Checkbox size. |
53 | If wxDefaultSize is specified then a default size is chosen. | |
7c913512 | 54 | @param style |
4cc4bfaf | 55 | Window style. See wxStaticBox. |
7c913512 | 56 | @param name |
4cc4bfaf | 57 | Window name. |
3c4f71cc | 58 | |
4cc4bfaf | 59 | @see Create() |
23324ae1 | 60 | */ |
7c913512 FM |
61 | wxStaticBox(wxWindow* parent, wxWindowID id, |
62 | const wxString& label, | |
63 | const wxPoint& pos = wxDefaultPosition, | |
64 | const wxSize& size = wxDefaultSize, | |
65 | long style = 0, | |
66 | const wxString& name = "staticBox"); | |
23324ae1 FM |
67 | |
68 | /** | |
69 | Destructor, destroying the group box. | |
70 | */ | |
adaaa686 | 71 | virtual ~wxStaticBox(); |
23324ae1 FM |
72 | |
73 | /** | |
4701dc09 FM |
74 | Creates the static box for two-step construction. |
75 | See wxStaticBox() for further details. | |
23324ae1 FM |
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 | }; | |
e54c96f1 | 84 |