]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/statbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/statbox.h
3 // Purpose: wxStaticBox class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_STATBOX_H__
13 #define __WX_COCOA_STATBOX_H__
15 #include "wx/cocoa/NSBox.h"
17 // ========================================================================
19 // ========================================================================
20 class WXDLLEXPORT wxStaticBox
: public wxStaticBoxBase
, protected wxCocoaNSBox
22 DECLARE_DYNAMIC_CLASS(wxStaticBox
)
24 WX_DECLARE_COCOA_OWNER(NSBox
,NSView
,NSView
)
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 wxStaticBox(wxWindow
*parent
, wxWindowID winid
, const wxString
& title
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 long style
= 0, const wxString
& name
= wxStaticBoxNameStr
)
35 Create(parent
, winid
, title
, pos
, size
, style
, name
);
38 bool Create(wxWindow
*parent
, wxWindowID winid
, const wxString
& title
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
41 long style
= 0, const wxString
& name
= wxStaticBoxNameStr
);
42 virtual ~wxStaticBox();
44 virtual void SetLabel(const wxString
& label
);
45 virtual wxString
GetLabel() const;
47 // ------------------------------------------------------------------------
49 // ------------------------------------------------------------------------
51 // Static boxes cannot be enabled/disabled
52 virtual void CocoaSetEnabled(bool enable
) { }
53 // ------------------------------------------------------------------------
55 // ------------------------------------------------------------------------
57 virtual void GetBordersForSizer(int *borderTop
, int *borderOther
) const;
61 #endif // __WX_COCOA_STATBOX_H__