1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticBox class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATBOX_H_
13 #define _WX_STATBOX_H_
15 #include "wx/control.h"
18 class WXDLLIMPEXP_CORE wxStaticBox
: public wxControl
20 DECLARE_DYNAMIC_CLASS(wxStaticBox
)
23 inline wxStaticBox() {}
24 inline wxStaticBox(wxWindow
*parent
, wxWindowID id
,
25 const wxString
& label
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
29 const wxString
& name
= wxStaticBoxNameStr
)
31 Create(parent
, id
, label
, pos
, size
, style
, name
);
34 bool Create(wxWindow
*parent
, wxWindowID id
,
35 const wxString
& label
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
39 const wxString
& name
= wxStaticBoxNameStr
);
41 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {};
42 virtual void ProcessCommand(wxCommandEvent
& WXUNUSED(event
)) {};
44 virtual void GetBordersForSizer(int *borderTop
, int *borderOther
) const;
46 virtual bool AcceptsFocus() const { return false; }
48 // protect native font of box
49 virtual bool SetFont( const wxFont
&font
);