]>
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 WXDLLEXPORT_DATA(extern const char*) wxStaticTextNameStr
;
23 class WXDLLEXPORT wxStaticText
: public wxControl
25 DECLARE_DYNAMIC_CLASS(wxStaticText
)
28 inline wxStaticText() { }
30 inline wxStaticText( wxWindow
* pParent
32 ,const wxString
& rsLabel
33 ,const wxPoint
& rPos
= wxDefaultPosition
34 ,const wxSize
& rSize
= wxDefaultSize
36 ,const wxString
& rsName
= wxStaticTextNameStr
39 Create(pParent
, vId
, rsLabel
, rPos
, rSize
, lStyle
, rsName
);
42 bool Create( wxWindow
* pParent
44 ,const wxString
& rsLabel
45 ,const wxPoint
& rPos
= wxDefaultPosition
46 ,const wxSize
& rSize
= wxDefaultSize
48 ,const wxString
& rsName
= wxStaticTextNameStr
54 void SetLabel(const wxString
&);
55 bool SetFont(const wxFont
&rFont
);
58 // Overriden base class virtuals
60 virtual bool AcceptsFocus() const { return FALSE
; }
65 virtual MRESULT
OS2WindowProc( WXUINT uMsg
71 virtual wxSize
DoGetBestSize(void) const;
72 }; // end of CLASS wxStaticText