]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/stattext.h
3 // Purpose: wxStaticText class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
15 class WXDLLEXPORT wxStaticText
: public wxStaticTextBase
20 wxStaticText(wxWindow
*parent
,
22 const wxString
& label
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
,
26 const wxString
& name
= wxStaticTextNameStr
)
28 Create(parent
, id
, label
, pos
, size
, style
, name
);
31 bool Create(wxWindow
*parent
,
33 const wxString
& label
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
37 const wxString
& name
= wxStaticTextNameStr
);
39 // override some methods to resize the window properly
40 virtual void SetLabel(const wxString
& label
);
41 virtual bool SetFont( const wxFont
&font
);
43 virtual WXDWORD
MSWGetStyle(long flags
, WXDWORD
*exstyle
= NULL
) const;
46 // implement/override some base class virtuals
47 virtual wxBorder
GetDefaultBorder() const;
48 virtual void DoSetSize(int x
, int y
, int w
, int h
,
49 int sizeFlags
= wxSIZE_AUTO
);
50 virtual wxSize
DoGetBestSize() const;
52 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText
)