1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/statbox.h
3 // Purpose: wxStaticBox class
4 // Author: David Elliott
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_COCOA_STATBOX_H__
12 #define __WX_COCOA_STATBOX_H__
14 #include "wx/cocoa/NSBox.h"
16 // ========================================================================
18 // ========================================================================
19 class WXDLLIMPEXP_CORE wxStaticBox
: public wxStaticBoxBase
, protected wxCocoaNSBox
21 DECLARE_DYNAMIC_CLASS(wxStaticBox
)
23 WX_DECLARE_COCOA_OWNER(NSBox
,NSView
,NSView
)
24 // ------------------------------------------------------------------------
26 // ------------------------------------------------------------------------
29 wxStaticBox(wxWindow
*parent
, wxWindowID winid
, const wxString
& title
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
32 long style
= 0, const wxString
& name
= wxStaticBoxNameStr
)
34 Create(parent
, winid
, title
, pos
, size
, style
, name
);
37 bool Create(wxWindow
*parent
, wxWindowID winid
, const wxString
& title
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
40 long style
= 0, const wxString
& name
= wxStaticBoxNameStr
);
41 virtual ~wxStaticBox();
43 virtual void SetLabel(const wxString
& label
);
44 virtual wxString
GetLabel() const;
46 // ------------------------------------------------------------------------
48 // ------------------------------------------------------------------------
50 // Static boxes cannot be enabled/disabled
51 virtual void CocoaSetEnabled(bool WXUNUSED(enable
)) { }
52 // ------------------------------------------------------------------------
54 // ------------------------------------------------------------------------
56 virtual void GetBordersForSizer(int *borderTop
, int *borderOther
) const;
60 #endif // __WX_COCOA_STATBOX_H__