1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKSTATICTEXTH__
12 #define __GTKSTATICTEXTH__
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
19 #include "wx/object.h"
21 #include "wx/control.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
27 class WXDLLIMPEXP_CORE wxStaticText
;
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 //-----------------------------------------------------------------------------
37 class WXDLLIMPEXP_CORE 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
);
61 bool SetForegroundColour( const wxColour
& colour
);
63 static wxVisualAttributes
64 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
73 virtual void DoSetSize(int x
, int y
,
74 int width
, int height
,
75 int sizeFlags
= wxSIZE_AUTO
);
77 virtual wxSize
DoGetBestSize() const;
79 DECLARE_DYNAMIC_CLASS(wxStaticText
)
82 #endif // __GTKSTATICTEXTH__