1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/stattext.h
3 // Purpose: wxStaticText class
4 // Author: Stefan Csomor
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_STATTEXT_H_
12 #define _WX_STATTEXT_H_
14 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
19 wxStaticText(wxWindow
*parent
, wxWindowID id
,
20 const wxString
& label
,
21 const wxPoint
& pos
= wxDefaultPosition
,
22 const wxSize
& size
= wxDefaultSize
,
24 const wxString
& name
= wxStaticTextNameStr
)
26 Create(parent
, id
, label
, pos
, size
, style
, name
);
29 bool Create(wxWindow
*parent
, wxWindowID id
,
30 const wxString
& label
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
34 const wxString
& name
= wxStaticTextNameStr
);
37 void SetLabel( const wxString
&str
) ;
38 bool SetFont( const wxFont
&font
);
40 virtual bool AcceptsFocus() const { return false; }
44 virtual wxString
DoGetLabel() const;
45 virtual void DoSetLabel(const wxString
& str
);
47 virtual wxSize
DoGetBestSize() const ;
49 #if wxUSE_MARKUP && wxOSX_USE_COCOA
50 virtual bool DoSetLabelMarkup(const wxString
& markup
);
51 #endif // wxUSE_MARKUP && wxOSX_USE_COCOA
53 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText
)