1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/stattext.h
3 // Purpose: wxStaticText class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_STATTEXT_H_
12 #define _WX_STATTEXT_H_
14 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
16 DECLARE_DYNAMIC_CLASS(wxStaticText
)
21 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
);
42 virtual bool ProcessCommand(wxCommandEvent
& WXUNUSED(event
))
47 virtual void SetLabel(const wxString
& label
);
49 // Get the widget that corresponds to the label
50 // (for font setting, label setting etc.)
51 virtual WXWidget
GetLabelWidget() const
52 { return m_labelWidget
; }
54 virtual void DoSetLabel(const wxString
& str
);
55 virtual wxString
DoGetLabel() const;
57 virtual wxSize
DoGetBestSize() const;
59 WXWidget m_labelWidget
;