1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/stattext.h
3 // Purpose: wxStaticText class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
15 class WXDLLIMPEXP_CORE wxStaticText
: public wxStaticTextBase
17 DECLARE_DYNAMIC_CLASS(wxStaticText
)
22 wxStaticText(wxWindow
*parent
, wxWindowID id
,
23 const wxString
& label
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
,
27 const wxString
& name
= wxStaticTextNameStr
)
29 Create(parent
, id
, label
, pos
, size
, style
, name
);
32 bool Create(wxWindow
*parent
, wxWindowID id
,
33 const wxString
& label
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
37 const wxString
& name
= wxStaticTextNameStr
);
43 virtual bool ProcessCommand(wxCommandEvent
& WXUNUSED(event
))
48 virtual void SetLabel(const wxString
& label
);
50 // Get the widget that corresponds to the label
51 // (for font setting, label setting etc.)
52 virtual WXWidget
GetLabelWidget() const
53 { return m_labelWidget
; }
55 virtual void DoSetLabel(const wxString
& str
);
56 virtual wxString
DoGetLabel() const;
58 virtual wxSize
DoGetBestSize() const;
60 WXWidget m_labelWidget
;