]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/stattext.h
Applied patch [ 1381895 ] remove circular include dependendcy in wxchar.h
[wxWidgets.git] / include / wx / motif / stattext.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: stattext.h
3 // Purpose: wxStaticText class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_STATTEXT_H_
13 #define _WX_STATTEXT_H_
14
15 class WXDLLEXPORT wxStaticText: public wxStaticTextBase
16 {
17 DECLARE_DYNAMIC_CLASS(wxStaticText)
18
19 public:
20 wxStaticText() { }
21
22 wxStaticText(wxWindow *parent, wxWindowID id,
23 const wxString& label,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = 0,
27 const wxString& name = wxStaticTextNameStr)
28 {
29 Create(parent, id, label, pos, size, style, name);
30 }
31
32 bool Create(wxWindow *parent, wxWindowID id,
33 const wxString& label,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = 0,
37 const wxString& name = wxStaticTextNameStr);
38
39 // implementation
40 // --------------
41
42 // operations
43 virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
44 {
45 return false;
46 }
47
48 virtual void SetLabel(const wxString& label);
49
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; }
54
55 protected:
56 WXWidget m_labelWidget;
57 };
58
59 #endif
60 // _WX_STATTEXT_H_