]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/stattext.h
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
[wxWidgets.git] / include / wx / os2 / stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/stattext.h
3 // Purpose: wxStaticText class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/17/99
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_STATTEXT_H_
12 #define _WX_STATTEXT_H_
13
14 #include "wx/control.h"
15
16 class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
17 {
18 public:
19 inline wxStaticText() { }
20 inline wxStaticText( wxWindow* pParent
21 ,wxWindowID vId
22 ,const wxString& rsLabel
23 ,const wxPoint& rPos = wxDefaultPosition
24 ,const wxSize& rSize = wxDefaultSize
25 ,long lStyle = 0L
26 ,const wxString& rsName = wxStaticTextNameStr
27 )
28 {
29 Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
30 }
31
32 bool Create( wxWindow* pParent
33 ,wxWindowID vId
34 ,const wxString& rsLabel
35 ,const wxPoint& rPos = wxDefaultPosition
36 ,const wxSize& rSize = wxDefaultSize
37 ,long lStyle = 0L
38 ,const wxString& rsName = wxStaticTextNameStr
39 );
40
41 //
42 // Accessors
43 //
44 virtual void SetLabel(const wxString& rsLabel);
45 virtual bool SetFont(const wxFont &rFont);
46
47 //
48 // Overridden base class virtuals
49 //
50 virtual bool AcceptsFocus() const { return FALSE; }
51
52 //
53 // Callbacks
54 //
55 virtual MRESULT OS2WindowProc( WXUINT uMsg
56 ,WXWPARAM wParam
57 ,WXLPARAM lParam
58 );
59
60 protected:
61 virtual void DoSetSize( int nX
62 ,int nY
63 ,int nWidth
64 ,int nHeight
65 ,int nSizeFlags = wxSIZE_AUTO
66 );
67 virtual wxSize DoGetBestSize(void) const;
68
69 virtual void DoSetLabel(const wxString& str);
70 virtual wxString DoGetLabel() const;
71
72 private:
73 DECLARE_DYNAMIC_CLASS(wxStaticText)
74 }; // end of CLASS wxStaticText
75
76 #endif
77 // _WX_STATTEXT_H_