]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/stattext.h
cb3ca101700ebd13c7a2f1e42863a2851776ef99
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "stattext.h"
19 class WXDLLEXPORT wxStaticText
: public wxStaticTextBase
24 wxStaticText(wxWindow
*parent
,
26 const wxString
& label
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
30 const wxString
& name
= wxStaticTextNameStr
)
32 Create(parent
, id
, label
, pos
, size
, style
, name
);
35 bool Create(wxWindow
*parent
,
37 const wxString
& label
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
41 const wxString
& name
= wxStaticTextNameStr
);
43 // override some methods to resize the window properly
44 virtual bool SetFont( const wxFont
&font
);
47 // implement/override some base class virtuals
48 virtual wxBorder
GetDefaultBorder() const;
49 virtual wxSize
DoGetBestSize() const;
51 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText
)