]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/stattext.h
compilation fix for recent commit
[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
1908260b 23class WXDLLEXPORT wxStaticText : public wxStaticTextBase
0e320a79 24{
3c299c3a 25public:
d90895ac 26 inline wxStaticText() { }
6d167e39
DW
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 )
d90895ac 35 {
6d167e39 36 Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
d90895ac 37 }
0e320a79 38
6d167e39
DW
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 );
0e320a79 47
6d167e39
DW
48 //
49 // Accessors
50 //
1908260b
DW
51 virtual void SetLabel(const wxString& rsLabel);
52 virtual bool SetFont(const wxFont &rFont);
d90895ac 53
6d167e39
DW
54 //
55 // Overriden base class virtuals
56 //
d90895ac
DW
57 virtual bool AcceptsFocus() const { return FALSE; }
58
6d167e39
DW
59 //
60 // Callbacks
61 //
62 virtual MRESULT OS2WindowProc( WXUINT uMsg
63 ,WXWPARAM wParam
64 ,WXLPARAM lParam
65 );
0e320a79 66
d90895ac 67protected:
1908260b
DW
68 virtual void DoSetSize( int nX
69 ,int nY
70 ,int nWidth
71 ,int nHeight
72 ,int nSizeFlags = wxSIZE_AUTO
73 );
6d167e39 74 virtual wxSize DoGetBestSize(void) const;
3c299c3a
DW
75
76private:
77 DECLARE_DYNAMIC_CLASS(wxStaticText)
6d167e39 78}; // end of CLASS wxStaticText
0e320a79
DW
79
80#endif
81 // _WX_STATTEXT_H_