]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/univ/stattext.h
95de78f9ef9c97e020b51b894e720eb429eef08d
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "univstattext.h"
19 class WXDLLEXPORT wxStaticText
: public wxStaticTextBase
25 wxStaticText(wxWindow
*parent
,
26 const wxString
& label
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
)
30 Create(parent
, wxID_ANY
, label
, pos
, size
, 0, wxStaticTextNameStr
);
34 wxStaticText(wxWindow
*parent
,
36 const wxString
& label
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
,
40 const wxString
&name
= wxStaticTextNameStr
)
42 Create(parent
, id
, label
, pos
, size
, style
, name
);
46 bool Create(wxWindow
*parent
,
48 const wxString
&label
,
49 const wxPoint
&pos
= wxDefaultPosition
,
50 const wxSize
&size
= wxDefaultSize
,
52 const wxString
&name
= wxStaticTextNameStr
);
54 // implementation only from now on
56 virtual void SetLabel(const wxString
& label
);
58 virtual bool IsFocused() const { return false; }
61 // calculate the optimal size for the label
62 virtual wxSize
DoGetBestClientSize() const;
65 virtual void DoDraw(wxControlRenderer
*renderer
);
67 DECLARE_ABSTRACT_CLASS(wxStaticText
)
70 #endif // _WX_UNIV_STATTEXT_H_