]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/stattext.h
1 /////////////////////////////////////////////////////////////////////////////
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 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "stattext.h"
19 class WXDLLEXPORT wxStaticText
: public wxStaticTextBase
21 DECLARE_DYNAMIC_CLASS(wxStaticText
)
26 wxStaticText(wxWindow
*parent
, wxWindowID id
,
27 const wxString
& label
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
,
31 const wxString
& name
= wxStaticTextNameStr
)
33 Create(parent
, id
, label
, pos
, size
, style
, name
);
36 bool Create(wxWindow
*parent
, wxWindowID id
,
37 const wxString
& label
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
,
41 const wxString
& name
= wxStaticTextNameStr
);
47 virtual bool ProcessCommand(wxCommandEvent
& WXUNUSED(event
))
52 virtual void SetLabel(const wxString
& label
);
54 // Get the widget that corresponds to the label
55 // (for font setting, label setting etc.)
56 virtual WXWidget
GetLabelWidget() const
57 { return m_labelWidget
; }
60 WXWidget m_labelWidget
;