]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/stattext.h
added test for writing empty value to the config
[wxWidgets.git] / include / wx / os2 / stattext.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: stattext.h
3// Purpose: wxStaticText class
d90895ac 4// Author: David Webster
0e320a79 5// Modified by:
d90895ac 6// Created: 10/17/99
0e320a79 7// RCS-ID: $Id$
d90895ac
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
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
21WXDLLEXPORT_DATA(extern const char*) wxStaticTextNameStr;
22
6d167e39 23class WXDLLEXPORT wxStaticText : public wxControl
0e320a79 24{
d90895ac
DW
25 DECLARE_DYNAMIC_CLASS(wxStaticText)
26
0e320a79 27 public:
d90895ac 28 inline wxStaticText() { }
0e320a79 29
6d167e39
DW
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 )
d90895ac 38 {
6d167e39 39 Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
d90895ac 40 }
0e320a79 41
6d167e39
DW
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 );
0e320a79 50
6d167e39
DW
51 //
52 // Accessors
53 //
d90895ac 54 void SetLabel(const wxString&);
6d167e39 55 bool SetFont(const wxFont &rFont);
d90895ac 56
6d167e39
DW
57 //
58 // Overriden base class virtuals
59 //
d90895ac
DW
60 virtual bool AcceptsFocus() const { return FALSE; }
61
6d167e39
DW
62 //
63 // Callbacks
64 //
65 virtual MRESULT OS2WindowProc( WXUINT uMsg
66 ,WXWPARAM wParam
67 ,WXLPARAM lParam
68 );
0e320a79 69
d90895ac 70protected:
6d167e39
DW
71 virtual wxSize DoGetBestSize(void) const;
72}; // end of CLASS wxStaticText
0e320a79
DW
73
74#endif
75 // _WX_STATTEXT_H_