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 #include "wx/generic/stattextg.h"
17 class WXDLLIMPEXP_CORE wxStaticText
: public wxGenericStaticText
23 wxStaticText(wxWindow
*parent
,
24 const wxString
& label
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
)
28 Create(parent
, wxID_ANY
, label
, pos
, size
, 0, wxStaticTextNameStr
);
32 wxStaticText(wxWindow
*parent
,
34 const wxString
& label
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
38 const wxString
&name
= wxStaticTextNameStr
)
40 Create(parent
, id
, label
, pos
, size
, style
, name
);
44 bool Create(wxWindow
*parent
,
46 const wxString
&label
,
47 const wxPoint
&pos
= wxDefaultPosition
,
48 const wxSize
&size
= wxDefaultSize
,
50 const wxString
&name
= wxStaticTextNameStr
);
52 // implementation only from now on
54 virtual void SetLabel(const wxString
& label
);
56 virtual bool IsFocused() const { return false; }
60 virtual void DoDraw(wxControlRenderer
*renderer
);
62 virtual void DoSetLabel(const wxString
& str
);
63 virtual wxString
DoGetLabel() const;
65 DECLARE_ABSTRACT_CLASS(wxStaticText
)
68 #endif // _WX_UNIV_STATTEXT_H_