]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/os2/stattext.h
avoid a bug in Carbon headers
[wxWidgets.git] / include / wx / os2 / stattext.h
... / ...
CommitLineData
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
21class WXDLLEXPORT wxStaticText : public wxStaticTextBase
22{
23public:
24 inline wxStaticText() { }
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 )
33 {
34 Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
35 }
36
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 );
45
46 //
47 // Accessors
48 //
49 virtual void SetLabel(const wxString& rsLabel);
50 virtual bool SetFont(const wxFont &rFont);
51
52 //
53 // Overriden base class virtuals
54 //
55 virtual bool AcceptsFocus() const { return FALSE; }
56
57 //
58 // Callbacks
59 //
60 virtual MRESULT OS2WindowProc( WXUINT uMsg
61 ,WXWPARAM wParam
62 ,WXLPARAM lParam
63 );
64
65protected:
66 virtual void DoSetSize( int nX
67 ,int nY
68 ,int nWidth
69 ,int nHeight
70 ,int nSizeFlags = wxSIZE_AUTO
71 );
72 virtual wxSize DoGetBestSize(void) const;
73
74private:
75 DECLARE_DYNAMIC_CLASS(wxStaticText)
76}; // end of CLASS wxStaticText
77
78#endif
79 // _WX_STATTEXT_H_