]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/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
17 DECLARE_DYNAMIC_CLASS(wxStaticText
)
19 inline wxStaticText() : m_label() { }
21 inline wxStaticText(wxWindow
*parent
, wxWindowID id
,
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
, wxWindowID id
,
32 const wxString
& label
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
36 const wxString
& name
= wxStaticTextNameStr
);
39 void SetLabel( const wxString
&str
) ;
40 bool SetFont( const wxFont
&font
);
43 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {};
44 virtual void ProcessCommand(wxCommandEvent
& WXUNUSED(event
)) {};
46 void DrawParagraph(wxDC
&dc
, wxString paragraph
, int &y
);
47 void OnPaint( wxPaintEvent
&event
) ;
48 void OnDraw( wxDC
&dc
) ;
49 virtual wxSize
DoGetBestSize() const ;
50 virtual bool AcceptsFocus() const { return FALSE
; }