]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/statbox.h
remove old (and unused) MSW-only wxFontEnumerator header
[wxWidgets.git] / include / wx / motif / statbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/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
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATBOX_H_
13 #define _WX_STATBOX_H_
14
15 // Group box
16 class WXDLLIMPEXP_CORE wxStaticBox: public wxStaticBoxBase
17 {
18 DECLARE_DYNAMIC_CLASS(wxStaticBox)
19
20 public:
21 wxStaticBox();
22 wxStaticBox(wxWindow *parent, wxWindowID id,
23 const wxString& label,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = 0,
27 const wxString& name = wxStaticBoxNameStr)
28 {
29 Create(parent, id, label, pos, size, style, name);
30 }
31
32 virtual ~wxStaticBox();
33
34 bool Create(wxWindow *parent, wxWindowID id,
35 const wxString& label,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 long style = 0,
39 const wxString& name = wxStaticBoxNameStr);
40
41 virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
42 {
43 return false;
44 }
45
46 virtual WXWidget GetLabelWidget() const { return m_labelWidget; }
47
48 virtual void SetLabel(const wxString& label);
49 virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
50
51 private:
52 WXWidget m_labelWidget;
53
54 private:
55 DECLARE_EVENT_TABLE()
56 };
57
58 #endif
59 // _WX_STATBOX_H_