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