]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/os2/stattext.h
Use "_x64" instead of "amd64" for x64 MSW makefile builds.
[wxWidgets.git] / include / wx / os2 / stattext.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/os2/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#include "wx/control.h"
16
17class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
18{
19public:
20 inline wxStaticText() { }
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 )
29 {
30 Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
31 }
32
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 );
41
42 //
43 // Accessors
44 //
45 virtual void SetLabel(const wxString& rsLabel);
46 virtual bool SetFont(const wxFont &rFont);
47
48 //
49 // Overridden base class virtuals
50 //
51 virtual bool AcceptsFocus() const { return FALSE; }
52
53 //
54 // Callbacks
55 //
56 virtual MRESULT OS2WindowProc( WXUINT uMsg
57 ,WXWPARAM wParam
58 ,WXLPARAM lParam
59 );
60
61protected:
62 virtual void DoSetSize( int nX
63 ,int nY
64 ,int nWidth
65 ,int nHeight
66 ,int nSizeFlags = wxSIZE_AUTO
67 );
68 virtual wxSize DoGetBestSize(void) const;
69
70 virtual void DoSetLabel(const wxString& str);
71 virtual wxString DoGetLabel() const;
72
73private:
74 DECLARE_DYNAMIC_CLASS(wxStaticText)
75}; // end of CLASS wxStaticText
76
77#endif
78 // _WX_STATTEXT_H_