1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/stattext.h
3 // Purpose: wxStaticText class
4 // Author: David Elliott
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_COCOA_STATTEXT_H__
12 #define __WX_COCOA_STATTEXT_H__
14 #include "wx/cocoa/NSTextField.h"
16 // ========================================================================
18 // ========================================================================
19 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
, protected wxCocoaNSTextField
21 DECLARE_DYNAMIC_CLASS(wxStaticText
)
23 WX_DECLARE_COCOA_OWNER(NSTextField
,NSControl
,NSView
)
24 // ------------------------------------------------------------------------
26 // ------------------------------------------------------------------------
29 wxStaticText(wxWindow
*parent
, wxWindowID winid
,
30 const wxString
& label
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
, long style
= 0,
33 const wxString
& name
= wxStaticTextNameStr
)
35 Create(parent
, winid
, label
, pos
, size
, style
, name
);
38 bool Create(wxWindow
*parent
, wxWindowID winid
,
39 const wxString
& label
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
, long style
= 0,
42 const wxString
& name
= wxStaticTextNameStr
);
43 virtual ~wxStaticText();
45 // ------------------------------------------------------------------------
47 // ------------------------------------------------------------------------
49 virtual void Cocoa_didChangeText(void);
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
54 virtual void SetLabel(const wxString
& label
);
55 virtual wxString
GetLabel() const;
58 #endif // __WX_COCOA_STATTEXT_H__