1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/stattext.h
3 // Purpose: wxStaticText class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_STATTEXT_H_
12 #define _WX_STATTEXT_H_
14 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
19 wxStaticText(wxWindow
*parent
,
21 const wxString
& label
,
22 const wxPoint
& pos
= wxDefaultPosition
,
23 const wxSize
& size
= wxDefaultSize
,
25 const wxString
& name
= wxStaticTextNameStr
)
27 Create(parent
, id
, label
, pos
, size
, style
, name
);
30 bool Create(wxWindow
*parent
,
32 const wxString
& label
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
36 const wxString
& name
= wxStaticTextNameStr
);
38 // override some methods to resize the window properly
39 virtual void SetLabel(const wxString
& label
);
40 virtual bool SetFont( const wxFont
&font
);
42 virtual WXDWORD
MSWGetStyle(long flags
, WXDWORD
*exstyle
= NULL
) const;
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;
50 virtual wxString
DoGetLabel() const;
51 virtual void DoSetLabel(const wxString
& str
);
53 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText
)