]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/stattext.h
gtk notebook page style fixes (patch 984864)
[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 8// Copyright: (c) David Webster
65571936 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
1908260b 21class WXDLLEXPORT wxStaticText : public wxStaticTextBase
0e320a79 22{
3c299c3a 23public:
d90895ac 24 inline wxStaticText() { }
6d167e39
DW
25 inline wxStaticText( wxWindow* pParent
26 ,wxWindowID vId
27 ,const wxString& rsLabel
28 ,const wxPoint& rPos = wxDefaultPosition
29 ,const wxSize& rSize = wxDefaultSize
30 ,long lStyle = 0L
31 ,const wxString& rsName = wxStaticTextNameStr
32 )
d90895ac 33 {
6d167e39 34 Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
d90895ac 35 }
0e320a79 36
6d167e39
DW
37 bool Create( wxWindow* pParent
38 ,wxWindowID vId
39 ,const wxString& rsLabel
40 ,const wxPoint& rPos = wxDefaultPosition
41 ,const wxSize& rSize = wxDefaultSize
42 ,long lStyle = 0L
43 ,const wxString& rsName = wxStaticTextNameStr
44 );
0e320a79 45
6d167e39
DW
46 //
47 // Accessors
48 //
1908260b
DW
49 virtual void SetLabel(const wxString& rsLabel);
50 virtual bool SetFont(const wxFont &rFont);
d90895ac 51
6d167e39
DW
52 //
53 // Overriden base class virtuals
54 //
d90895ac
DW
55 virtual bool AcceptsFocus() const { return FALSE; }
56
6d167e39
DW
57 //
58 // Callbacks
59 //
60 virtual MRESULT OS2WindowProc( WXUINT uMsg
61 ,WXWPARAM wParam
62 ,WXLPARAM lParam
63 );
0e320a79 64
d90895ac 65protected:
1908260b
DW
66 virtual void DoSetSize( int nX
67 ,int nY
68 ,int nWidth
69 ,int nHeight
70 ,int nSizeFlags = wxSIZE_AUTO
71 );
6d167e39 72 virtual wxSize DoGetBestSize(void) const;
3c299c3a
DW
73
74private:
75 DECLARE_DYNAMIC_CLASS(wxStaticText)
6d167e39 76}; // end of CLASS wxStaticText
0e320a79
DW
77
78#endif
79 // _WX_STATTEXT_H_