]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/stattext.h
added test for writing empty value to the config
[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 wxControl
24 {
25 DECLARE_DYNAMIC_CLASS(wxStaticText)
26
27 public:
28 inline wxStaticText() { }
29
30 inline wxStaticText( wxWindow* pParent
31 ,wxWindowID vId
32 ,const wxString& rsLabel
33 ,const wxPoint& rPos = wxDefaultPosition
34 ,const wxSize& rSize = wxDefaultSize
35 ,long lStyle = 0L
36 ,const wxString& rsName = wxStaticTextNameStr
37 )
38 {
39 Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
40 }
41
42 bool Create( wxWindow* pParent
43 ,wxWindowID vId
44 ,const wxString& rsLabel
45 ,const wxPoint& rPos = wxDefaultPosition
46 ,const wxSize& rSize = wxDefaultSize
47 ,long lStyle = 0L
48 ,const wxString& rsName = wxStaticTextNameStr
49 );
50
51 //
52 // Accessors
53 //
54 void SetLabel(const wxString&);
55 bool SetFont(const wxFont &rFont);
56
57 //
58 // Overriden base class virtuals
59 //
60 virtual bool AcceptsFocus() const { return FALSE; }
61
62 //
63 // Callbacks
64 //
65 virtual MRESULT OS2WindowProc( WXUINT uMsg
66 ,WXWPARAM wParam
67 ,WXLPARAM lParam
68 );
69
70 protected:
71 virtual wxSize DoGetBestSize(void) const;
72 }; // end of CLASS wxStaticText
73
74 #endif
75 // _WX_STATTEXT_H_