1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKSTATICTEXTH__
12 #define __GTKSTATICTEXTH__
19 #include "wx/object.h"
21 #include "wx/control.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 class wxStaticText
: public wxControl
41 wxStaticText(wxWindow
*parent
,
43 const wxString
&label
,
44 const wxPoint
&pos
= wxDefaultPosition
,
45 const wxSize
&size
= wxDefaultSize
,
47 const wxString
&name
= wxStaticTextNameStr
);
49 bool Create(wxWindow
*parent
,
51 const wxString
&label
,
52 const wxPoint
&pos
= wxDefaultPosition
,
53 const wxSize
&size
= wxDefaultSize
,
55 const wxString
&name
= wxStaticTextNameStr
);
57 wxString
GetLabel() const;
58 void SetLabel( const wxString
&label
);
60 bool SetFont( const wxFont
&font
);
65 void ApplyWidgetStyle();
68 virtual wxSize
DoGetBestSize() const;
70 DECLARE_DYNAMIC_CLASS(wxStaticText
)
73 #endif // __GTKSTATICTEXTH__