]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/stattext.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxStaticText class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
16 #pragma interface "stattext.h"
19 class WXDLLEXPORT wxStaticText
: public wxStaticTextBase
21 DECLARE_DYNAMIC_CLASS(wxStaticText
)
23 inline wxStaticText() : m_label() { }
25 inline wxStaticText(wxWindow
*parent
, wxWindowID id
,
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
, wxWindowID id
,
36 const wxString
& label
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
,
40 const wxString
& name
= wxStaticTextNameStr
);
43 void SetLabel( const wxString
&str
) ;
45 virtual void Command(wxCommandEvent
& WXUNUSED(event
)) {};
46 virtual void ProcessCommand(wxCommandEvent
& WXUNUSED(event
)) {};
48 void DrawParagraph(wxDC
&dc
, wxString paragraph
);
49 void OnPaint( wxPaintEvent
&event
) ;
50 void OnDraw( wxDC
&dc
) ;
51 virtual wxSize
DoGetBestSize() const ;
52 virtual bool AcceptsFocus() const { return FALSE
; }