]>
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 wxStaticTextBase
26 inline wxStaticText() { }
27 inline wxStaticText( wxWindow
* pParent
29 ,const wxString
& rsLabel
30 ,const wxPoint
& rPos
= wxDefaultPosition
31 ,const wxSize
& rSize
= wxDefaultSize
33 ,const wxString
& rsName
= wxStaticTextNameStr
36 Create(pParent
, vId
, rsLabel
, rPos
, rSize
, lStyle
, rsName
);
39 bool Create( wxWindow
* pParent
41 ,const wxString
& rsLabel
42 ,const wxPoint
& rPos
= wxDefaultPosition
43 ,const wxSize
& rSize
= wxDefaultSize
45 ,const wxString
& rsName
= wxStaticTextNameStr
51 virtual void SetLabel(const wxString
& rsLabel
);
52 virtual bool SetFont(const wxFont
&rFont
);
55 // Overriden base class virtuals
57 virtual bool AcceptsFocus() const { return FALSE
; }
62 virtual MRESULT
OS2WindowProc( WXUINT uMsg
68 virtual void DoSetSize( int nX
72 ,int nSizeFlags
= wxSIZE_AUTO
74 virtual wxSize
DoGetBestSize(void) const;
77 DECLARE_DYNAMIC_CLASS(wxStaticText
)
78 }; // end of CLASS wxStaticText