]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/stattext.h
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 extern const wxChar
*wxStaticTextNameStr
;
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
39 class wxStaticText
: public wxControl
43 wxStaticText(wxWindow
*parent
,
45 const wxString
&label
,
46 const wxPoint
&pos
= wxDefaultPosition
,
47 const wxSize
&size
= wxDefaultSize
,
49 const wxString
&name
= wxStaticTextNameStr
);
51 bool Create(wxWindow
*parent
,
53 const wxString
&label
,
54 const wxPoint
&pos
= wxDefaultPosition
,
55 const wxSize
&size
= wxDefaultSize
,
57 const wxString
&name
= wxStaticTextNameStr
);
59 wxString
GetLabel() const;
60 void SetLabel( const wxString
&label
);
62 bool SetFont( const wxFont
&font
);
67 void ApplyWidgetStyle();
70 virtual wxSize
DoGetBestSize() const;
72 DECLARE_DYNAMIC_CLASS(wxStaticText
)
75 #endif // __GTKSTATICTEXTH__