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