]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/stattext.h
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_
16 #pragma interface "stattext.h"
19 #include "wx/control.h"
21 class WXDLLEXPORT wxStaticText
: public wxStaticTextBase
24 inline wxStaticText() { }
25 inline wxStaticText( wxWindow
* pParent
27 ,const wxString
& rsLabel
28 ,const wxPoint
& rPos
= wxDefaultPosition
29 ,const wxSize
& rSize
= wxDefaultSize
31 ,const wxString
& rsName
= wxStaticTextNameStr
34 Create(pParent
, vId
, rsLabel
, rPos
, rSize
, lStyle
, rsName
);
37 bool Create( wxWindow
* pParent
39 ,const wxString
& rsLabel
40 ,const wxPoint
& rPos
= wxDefaultPosition
41 ,const wxSize
& rSize
= wxDefaultSize
43 ,const wxString
& rsName
= wxStaticTextNameStr
49 virtual void SetLabel(const wxString
& rsLabel
);
50 virtual bool SetFont(const wxFont
&rFont
);
53 // Overriden base class virtuals
55 virtual bool AcceptsFocus() const { return FALSE
; }
60 virtual MRESULT
OS2WindowProc( WXUINT uMsg
66 virtual void DoSetSize( int nX
70 ,int nSizeFlags
= wxSIZE_AUTO
72 virtual wxSize
DoGetBestSize(void) const;
75 DECLARE_DYNAMIC_CLASS(wxStaticText
)
76 }; // end of CLASS wxStaticText