]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/stattext.h
f6ef3232cdc0bda9e9527a1f672bf461d4c8be02
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/univ/stattext.h
3 // Purpose: wxStaticText
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2000 Vadim Zeitlin
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_UNIV_STATTEXT_H_
13 #define _WX_UNIV_STATTEXT_H_
16 #pragma interface "univstattext.h"
19 class WXDLLEXPORT wxStaticText
: public wxStaticTextBase
23 wxStaticText(wxWindow
*parent
,
24 const wxString
& label
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
)
28 Create(parent
, -1, 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
);
57 // calculate the optimal size for the label
58 virtual wxSize
DoGetBestClientSize() const;
61 virtual void DoDraw(wxControlRenderer
*renderer
);
64 #endif // _WX_UNIV_STATTEXT_H_