]>
Commit | Line | Data |
---|---|---|
0e320a79 | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/os2/stattext.h |
0e320a79 | 3 | // Purpose: wxStaticText class |
d90895ac | 4 | // Author: David Webster |
0e320a79 | 5 | // Modified by: |
d90895ac | 6 | // Created: 10/17/99 |
d90895ac | 7 | // Copyright: (c) David Webster |
65571936 | 8 | // Licence: wxWindows licence |
0e320a79 DW |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef _WX_STATTEXT_H_ | |
12 | #define _WX_STATTEXT_H_ | |
13 | ||
0e320a79 DW |
14 | #include "wx/control.h" |
15 | ||
53a2db12 | 16 | class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase |
0e320a79 | 17 | { |
3c299c3a | 18 | public: |
d90895ac | 19 | inline wxStaticText() { } |
6d167e39 DW |
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 | ) | |
d90895ac | 28 | { |
6d167e39 | 29 | Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName); |
d90895ac | 30 | } |
0e320a79 | 31 | |
6d167e39 DW |
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 | ); | |
0e320a79 | 40 | |
6d167e39 DW |
41 | // |
42 | // Accessors | |
43 | // | |
1908260b DW |
44 | virtual void SetLabel(const wxString& rsLabel); |
45 | virtual bool SetFont(const wxFont &rFont); | |
d90895ac | 46 | |
6d167e39 | 47 | // |
4c51a665 | 48 | // Overridden base class virtuals |
6d167e39 | 49 | // |
d90895ac DW |
50 | virtual bool AcceptsFocus() const { return FALSE; } |
51 | ||
6d167e39 DW |
52 | // |
53 | // Callbacks | |
54 | // | |
55 | virtual MRESULT OS2WindowProc( WXUINT uMsg | |
56 | ,WXWPARAM wParam | |
57 | ,WXLPARAM lParam | |
58 | ); | |
0e320a79 | 59 | |
d90895ac | 60 | protected: |
1908260b DW |
61 | virtual void DoSetSize( int nX |
62 | ,int nY | |
63 | ,int nWidth | |
64 | ,int nHeight | |
65 | ,int nSizeFlags = wxSIZE_AUTO | |
66 | ); | |
6d167e39 | 67 | virtual wxSize DoGetBestSize(void) const; |
3c299c3a | 68 | |
39bc0347 VZ |
69 | virtual void DoSetLabel(const wxString& str); |
70 | virtual wxString DoGetLabel() const; | |
71 | ||
3c299c3a DW |
72 | private: |
73 | DECLARE_DYNAMIC_CLASS(wxStaticText) | |
6d167e39 | 74 | }; // end of CLASS wxStaticText |
0e320a79 DW |
75 | |
76 | #endif | |
77 | // _WX_STATTEXT_H_ |