]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/statbox.h
Add wxBookCtrlBase::DoSetSelectionAfterRemoval() and use it in wxSimplebook.
[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 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATBOX_H_
13 #define _WX_STATBOX_H_
14
15 #include "wx/control.h"
16
17 // Group box
18 class WXDLLIMPEXP_CORE wxStaticBox: public wxControl
19 {
20 DECLARE_DYNAMIC_CLASS(wxStaticBox)
21
22 public:
23 inline wxStaticBox() {}
24 inline wxStaticBox(wxWindow *parent, wxWindowID id,
25 const wxString& label,
26 const wxPoint& pos = wxDefaultPosition,
27 const wxSize& size = wxDefaultSize,
28 long style = 0,
29 const wxString& name = wxStaticBoxNameStr)
30 {
31 Create(parent, id, label, pos, size, style, name);
32 }
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 void Command(wxCommandEvent& WXUNUSED(event)) {}
42 virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}
43
44 virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
45
46 virtual bool AcceptsFocus() const { return false; }
47
48 // protect native font of box
49 virtual bool SetFont( const wxFont &font );
50 };
51
52 #endif
53 // _WX_STATBOX_H_