1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/statbox.h
3 // Purpose: wxStaticBox class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_STATBOX_H_
12 #define _WX_STATBOX_H_
14 #include "wx/control.h"
17 class WXDLLIMPEXP_CORE wxStaticBox
: public wxControl
19 DECLARE_DYNAMIC_CLASS(wxStaticBox
)
22 inline wxStaticBox() {}
23 inline wxStaticBox(wxWindow
*parent
, wxWindowID id
,
24 const wxString
& label
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
,
28 const wxString
& name
= wxStaticBoxNameStr
)
30 Create(parent
, id
, label
, pos
, size
, style
, name
);
33 bool Create(wxWindow
*parent
, wxWindowID id
,
34 const wxString
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
38 const wxString
& name
= wxStaticBoxNameStr
);
40 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {}
41 virtual void ProcessCommand(wxCommandEvent
& WXUNUSED(event
)) {}
43 virtual void GetBordersForSizer(int *borderTop
, int *borderOther
) const;
45 virtual bool AcceptsFocus() const { return false; }
47 // protect native font of box
48 virtual bool SetFont( const wxFont
&font
);