1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticText class
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
15 #include "wx/control.h"
17 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
20 inline wxStaticText() { }
21 inline wxStaticText( wxWindow
* pParent
23 ,const wxString
& rsLabel
24 ,const wxPoint
& rPos
= wxDefaultPosition
25 ,const wxSize
& rSize
= wxDefaultSize
27 ,const wxString
& rsName
= wxStaticTextNameStr
30 Create(pParent
, vId
, rsLabel
, rPos
, rSize
, lStyle
, rsName
);
33 bool Create( wxWindow
* pParent
35 ,const wxString
& rsLabel
36 ,const wxPoint
& rPos
= wxDefaultPosition
37 ,const wxSize
& rSize
= wxDefaultSize
39 ,const wxString
& rsName
= wxStaticTextNameStr
45 virtual void SetLabel(const wxString
& rsLabel
);
46 virtual bool SetFont(const wxFont
&rFont
);
49 // Overriden base class virtuals
51 virtual bool AcceptsFocus() const { return FALSE
; }
56 virtual MRESULT
OS2WindowProc( WXUINT uMsg
62 virtual void DoSetSize( int nX
66 ,int nSizeFlags
= wxSIZE_AUTO
68 virtual wxSize
DoGetBestSize(void) const;
70 virtual void DoSetLabel(const wxString
& str
);
71 virtual wxString
DoGetLabel() const;
74 DECLARE_DYNAMIC_CLASS(wxStaticText
)
75 }; // end of CLASS wxStaticText