]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/statbox.h
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
[wxWidgets.git] / include / wx / osx / statbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/statbox.h
3 // Purpose: wxStaticBox class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_STATBOX_H_
12 #define _WX_STATBOX_H_
13
14 #include "wx/control.h"
15
16 // Group box
17 class WXDLLIMPEXP_CORE wxStaticBox: public wxControl
18 {
19 DECLARE_DYNAMIC_CLASS(wxStaticBox)
20
21 public:
22 inline wxStaticBox() {}
23 inline wxStaticBox(wxWindow *parent, wxWindowID id,
24 const wxString& label,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize,
27 long style = 0,
28 const wxString& name = wxStaticBoxNameStr)
29 {
30 Create(parent, id, label, pos, size, style, name);
31 }
32
33 bool Create(wxWindow *parent, wxWindowID id,
34 const wxString& label,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = 0,
38 const wxString& name = wxStaticBoxNameStr);
39
40 virtual void Command(wxCommandEvent& WXUNUSED(event)) {}
41 virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}
42
43 virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
44
45 virtual bool AcceptsFocus() const { return false; }
46
47 // protect native font of box
48 virtual bool SetFont( const wxFont &font );
49 };
50
51 #endif
52 // _WX_STATBOX_H_