1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/stattext.h
3 // Purpose: wxStaticText class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_STATTEXT_H_
12 #define _WX_STATTEXT_H_
14 #include "wx/control.h"
16 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
19 inline wxStaticText() { }
20 inline wxStaticText( wxWindow
* pParent
22 ,const wxString
& rsLabel
23 ,const wxPoint
& rPos
= wxDefaultPosition
24 ,const wxSize
& rSize
= wxDefaultSize
26 ,const wxString
& rsName
= wxStaticTextNameStr
29 Create(pParent
, vId
, rsLabel
, rPos
, rSize
, lStyle
, rsName
);
32 bool Create( wxWindow
* pParent
34 ,const wxString
& rsLabel
35 ,const wxPoint
& rPos
= wxDefaultPosition
36 ,const wxSize
& rSize
= wxDefaultSize
38 ,const wxString
& rsName
= wxStaticTextNameStr
44 virtual void SetLabel(const wxString
& rsLabel
);
45 virtual bool SetFont(const wxFont
&rFont
);
48 // Overridden base class virtuals
50 virtual bool AcceptsFocus() const { return FALSE
; }
55 virtual MRESULT
OS2WindowProc( WXUINT uMsg
61 virtual void DoSetSize( int nX
65 ,int nSizeFlags
= wxSIZE_AUTO
67 virtual wxSize
DoGetBestSize(void) const;
69 virtual void DoSetLabel(const wxString
& str
);
70 virtual wxString
DoGetLabel() const;
73 DECLARE_DYNAMIC_CLASS(wxStaticText
)
74 }; // end of CLASS wxStaticText