]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/stattext.h
added wxString::rbegin() and rend()
[wxWidgets.git] / include / wx / motif / stattext.h
CommitLineData
9b6dbb09
JS
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
65571936 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_STATTEXT_H_
13#define _WX_STATTEXT_H_
14
9a595736 15class WXDLLEXPORT wxStaticText: public wxStaticTextBase
9b6dbb09 16{
31528cd3 17 DECLARE_DYNAMIC_CLASS(wxStaticText)
83df96d6 18
31528cd3
VZ
19public:
20 wxStaticText() { }
83df96d6 21
31528cd3 22 wxStaticText(wxWindow *parent, wxWindowID id,
83df96d6
JS
23 const wxString& label,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize,
26 long style = 0,
27 const wxString& name = wxStaticTextNameStr)
31528cd3
VZ
28 {
29 Create(parent, id, label, pos, size, style, name);
30 }
83df96d6 31
31528cd3 32 bool Create(wxWindow *parent, wxWindowID id,
83df96d6
JS
33 const wxString& label,
34 const wxPoint& pos = wxDefaultPosition,
35 const wxSize& size = wxDefaultSize,
36 long style = 0,
37 const wxString& name = wxStaticTextNameStr);
38
31528cd3
VZ
39 // implementation
40 // --------------
83df96d6 41
31528cd3
VZ
42 // operations
43 virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
44 {
96be256b 45 return false;
31528cd3 46 }
83df96d6 47
fe5de1ea 48 virtual void SetLabel(const wxString& label);
6886fcfa 49
9a595736
MB
50 // Get the widget that corresponds to the label
51 // (for font setting, label setting etc.)
6886fcfa
JS
52 virtual WXWidget GetLabelWidget() const
53 { return m_labelWidget; }
54
55protected:
56 WXWidget m_labelWidget;
9b6dbb09
JS
57};
58
59#endif
83df96d6 60// _WX_STATTEXT_H_