]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/stattext.h
XRC: make wxSplitterWindow's sashpos and minpanesize dimensions.
[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 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_STATTEXT_H_
12 #define _WX_STATTEXT_H_
13
14 class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
15 {
16 public:
17 wxStaticText() { }
18
19 wxStaticText(wxWindow *parent,
20 wxWindowID id,
21 const wxString& label,
22 const wxPoint& pos = wxDefaultPosition,
23 const wxSize& size = wxDefaultSize,
24 long style = 0,
25 const wxString& name = wxStaticTextNameStr)
26 {
27 Create(parent, id, label, pos, size, style, name);
28 }
29
30 bool Create(wxWindow *parent,
31 wxWindowID id,
32 const wxString& label,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 long style = 0,
36 const wxString& name = wxStaticTextNameStr);
37
38 // override some methods to resize the window properly
39 virtual void SetLabel(const wxString& label);
40 virtual bool SetFont( const wxFont &font );
41
42 virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
43
44 protected:
45 // implement/override some base class virtuals
46 virtual void DoSetSize(int x, int y, int w, int h,
47 int sizeFlags = wxSIZE_AUTO);
48 virtual wxSize DoGetBestClientSize() const;
49
50 virtual wxString DoGetLabel() const;
51 virtual void DoSetLabel(const wxString& str);
52
53 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
54 };
55
56 #endif
57 // _WX_STATTEXT_H_