1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/stattext.h
3 // Purpose: wxStaticText
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIV_STATTEXT_H_
13 #define _WX_UNIV_STATTEXT_H_
15 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
21 wxStaticText(wxWindow
*parent
,
22 const wxString
& label
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
)
26 Create(parent
, wxID_ANY
, label
, pos
, size
, 0, wxStaticTextNameStr
);
30 wxStaticText(wxWindow
*parent
,
32 const wxString
& label
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
36 const wxString
&name
= wxStaticTextNameStr
)
38 Create(parent
, id
, label
, pos
, size
, style
, name
);
42 bool Create(wxWindow
*parent
,
44 const wxString
&label
,
45 const wxPoint
&pos
= wxDefaultPosition
,
46 const wxSize
&size
= wxDefaultSize
,
48 const wxString
&name
= wxStaticTextNameStr
);
50 // implementation only from now on
52 virtual void SetLabel(const wxString
& label
);
54 virtual bool IsFocused() const { return false; }
57 // calculate the optimal size for the label
58 virtual wxSize
DoGetBestClientSize() const;
61 virtual void DoDraw(wxControlRenderer
*renderer
);
63 virtual void DoSetLabel(const wxString
& str
);
64 virtual wxString
DoGetLabel() const;
66 DECLARE_ABSTRACT_CLASS(wxStaticText
)
69 #endif // _WX_UNIV_STATTEXT_H_