1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/stattext.h
3 // Purpose: wxStaticText class
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by: Wlodzimierz ABX Skiba - native wxStaticText implementation
8 // Copyright: (c) William Osborne, Wlodzimierz Skiba
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
15 class WXDLLIMPEXP_CORE 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 bool SetFont( const wxFont
&font
);
43 // implement/override some base class virtuals
44 virtual wxBorder
GetDefaultBorder() const;
45 virtual wxSize
DoGetBestSize() const;
47 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText
)