]>
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "stattext.h"
19 class WXDLLEXPORT wxStaticText
: public wxStaticTextBase
24 wxStaticText(wxWindow
*parent
, wxWindowID id
,
25 const wxString
& label
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
,
29 const wxString
& name
= wxStaticTextNameStr
)
31 Create(parent
, id
, label
, pos
, size
, style
, name
);
34 bool Create(wxWindow
*parent
, wxWindowID id
,
35 const wxString
& label
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
39 const wxString
& name
= wxStaticTextNameStr
);
42 void SetLabel( const wxString
&str
) ;
43 bool SetFont( const wxFont
&font
);
47 virtual wxSize
DoGetBestSize() const ;
48 virtual bool AcceptsFocus() const { return FALSE
; }
50 DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText
)