1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/stattext.h
3 // Purpose: wxStaticText
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_UNIV_STATTEXT_H_
12 #define _WX_UNIV_STATTEXT_H_
14 #include "wx/generic/stattextg.h"
16 class WXDLLIMPEXP_CORE wxStaticText
: public wxGenericStaticText
22 wxStaticText(wxWindow
*parent
,
23 const wxString
& label
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
)
27 Create(parent
, wxID_ANY
, label
, pos
, size
, 0, wxStaticTextNameStr
);
31 wxStaticText(wxWindow
*parent
,
33 const wxString
& label
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
37 const wxString
&name
= wxStaticTextNameStr
)
39 Create(parent
, id
, label
, pos
, size
, style
, name
);
43 bool Create(wxWindow
*parent
,
45 const wxString
&label
,
46 const wxPoint
&pos
= wxDefaultPosition
,
47 const wxSize
&size
= wxDefaultSize
,
49 const wxString
&name
= wxStaticTextNameStr
);
51 // implementation only from now on
53 virtual void SetLabel(const wxString
& label
);
55 virtual bool IsFocused() const { return false; }
59 virtual void DoDraw(wxControlRenderer
*renderer
);
61 virtual void DoSetLabel(const wxString
& str
);
62 virtual wxString
DoGetLabel() const;
64 DECLARE_DYNAMIC_CLASS(wxStaticText
)
67 #endif // _WX_UNIV_STATTEXT_H_