]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/stattext.h
AddFile(wxImage&) -> AddFile(const wxImage&)
[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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "stattext.h"
17 #endif
18
19 class WXDLLEXPORT wxStaticText: public wxStaticTextBase
20 {
21 DECLARE_DYNAMIC_CLASS(wxStaticText)
22
23 public:
24 wxStaticText() { }
25
26 wxStaticText(wxWindow *parent, wxWindowID id,
27 const wxString& label,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& size = wxDefaultSize,
30 long style = 0,
31 const wxString& name = wxStaticTextNameStr)
32 {
33 Create(parent, id, label, pos, size, style, name);
34 }
35
36 bool Create(wxWindow *parent, wxWindowID id,
37 const wxString& label,
38 const wxPoint& pos = wxDefaultPosition,
39 const wxSize& size = wxDefaultSize,
40 long style = 0,
41 const wxString& name = wxStaticTextNameStr);
42
43 // implementation
44 // --------------
45
46 // operations
47 virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
48 {
49 return FALSE;
50 }
51
52 virtual void SetLabel(const wxString& label);
53
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; }
58
59 protected:
60 WXWidget m_labelWidget;
61 };
62
63 #endif
64 // _WX_STATTEXT_H_