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