]>
Commit | Line | Data |
---|---|---|
9b6dbb09 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: statbox.h | |
3 | // Purpose: wxStaticBox class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
65571936 | 9 | // Licence: wxWindows licence |
9b6dbb09 JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_STATBOX_H_ | |
13 | #define _WX_STATBOX_H_ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
9b6dbb09 JS |
16 | #pragma interface "statbox.h" |
17 | #endif | |
18 | ||
9b6dbb09 | 19 | // Group box |
483561c5 | 20 | class WXDLLEXPORT wxStaticBox: public wxStaticBoxBase |
9b6dbb09 | 21 | { |
83df96d6 JS |
22 | DECLARE_DYNAMIC_CLASS(wxStaticBox) |
23 | ||
bfc6fde4 VZ |
24 | public: |
25 | wxStaticBox(); | |
26 | wxStaticBox(wxWindow *parent, wxWindowID id, | |
83df96d6 JS |
27 | const wxString& label, |
28 | const wxPoint& pos = wxDefaultPosition, | |
29 | const wxSize& size = wxDefaultSize, | |
30 | long style = 0, | |
31 | const wxString& name = wxStaticBoxNameStr) | |
bfc6fde4 VZ |
32 | { |
33 | Create(parent, id, label, pos, size, style, name); | |
34 | } | |
483561c5 | 35 | |
bfc6fde4 | 36 | ~wxStaticBox(); |
83df96d6 | 37 | |
bfc6fde4 | 38 | bool Create(wxWindow *parent, wxWindowID id, |
83df96d6 JS |
39 | const wxString& label, |
40 | const wxPoint& pos = wxDefaultPosition, | |
41 | const wxSize& size = wxDefaultSize, | |
42 | long style = 0, | |
43 | const wxString& name = wxStaticBoxNameStr); | |
44 | ||
31528cd3 VZ |
45 | virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event)) |
46 | { | |
47 | return FALSE; | |
48 | } | |
483561c5 MB |
49 | |
50 | virtual WXWidget GetLabelWidget() const { return m_labelWidget; } | |
51 | ||
52 | virtual void SetLabel(const wxString& label); | |
53 | ||
54 | private: | |
bfc6fde4 | 55 | WXWidget m_labelWidget; |
2b5f62a0 | 56 | |
bfc6fde4 VZ |
57 | private: |
58 | DECLARE_EVENT_TABLE() | |
9b6dbb09 JS |
59 | }; |
60 | ||
61 | #endif | |
83df96d6 | 62 | // _WX_STATBOX_H_ |