]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/stattext.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticText class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
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
, wxWindowID id
,
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
, wxWindowID id
,
31 const wxString
& label
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
35 const wxString
& name
= wxStaticTextNameStr
);
38 void SetLabel( const wxString
&str
) ;
39 bool SetFont( const wxFont
&font
);
41 virtual bool AcceptsFocus() const { return FALSE
; }
45 virtual wxSize
DoGetBestSize() const ;
47 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText
)