1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticText class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
15 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
20 wxStaticText(wxWindow
*parent
, wxWindowID id
,
21 const wxString
& label
,
22 const wxPoint
& pos
= wxDefaultPosition
,
23 const wxSize
& size
= wxDefaultSize
,
25 const wxString
& name
= wxStaticTextNameStr
)
27 Create(parent
, id
, label
, pos
, size
, style
, name
);
30 bool Create(wxWindow
*parent
, wxWindowID id
,
31 const wxString
& label
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
35 const wxString
& name
= wxStaticTextNameStr
);
38 void SetLabel( const wxString
&str
) ;
39 bool SetFont( const wxFont
&font
);
41 virtual bool AcceptsFocus() const { return FALSE
; }
45 virtual wxString
DoGetLabel() const;
46 virtual void DoSetLabel(const wxString
& str
);
48 virtual wxSize
DoGetBestSize() const ;
50 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText
)