]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/stattext.h
Removed wxPropertyGridManager::GetChildrentCount() member functions - now use page...
[wxWidgets.git] / include / wx / msw / stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/stattext.h
3 // Purpose: wxStaticText class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
14
15 class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
16 {
17 public:
18 wxStaticText() { }
19
20 wxStaticText(wxWindow *parent,
21 wxWindowID id,
22 const wxString& label,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize,
25 long style = 0,
26 const wxString& name = wxStaticTextNameStr)
27 {
28 Create(parent, id, label, pos, size, style, name);
29 }
30
31 bool Create(wxWindow *parent,
32 wxWindowID id,
33 const wxString& label,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = 0,
37 const wxString& name = wxStaticTextNameStr);
38
39 // override some methods to resize the window properly
40 virtual void SetLabel(const wxString& label);
41 virtual bool SetFont( const wxFont &font );
42
43 virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
44
45 protected:
46 // implement/override some base class virtuals
47 virtual void DoSetSize(int x, int y, int w, int h,
48 int sizeFlags = wxSIZE_AUTO);
49 virtual wxSize DoGetBestSize() const;
50
51 virtual wxString DoGetLabel() const;
52 virtual void DoSetLabel(const wxString& str);
53
54 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
55 };
56
57 #endif
58 // _WX_STATTEXT_H_