]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/stattext.h
Partial fix for #15196: wxRichTextCell caret issues (dghart)
[wxWidgets.git] / include / wx / motif / stattext.h
CommitLineData
9b6dbb09 1/////////////////////////////////////////////////////////////////////////////
925f7740 2// Name: wx/motif/stattext.h
9b6dbb09
JS
3// Purpose: wxStaticText class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
9b6dbb09 7// Copyright: (c) Julian Smart
65571936 8// Licence: wxWindows licence
9b6dbb09
JS
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_STATTEXT_H_
12#define _WX_STATTEXT_H_
13
53a2db12 14class WXDLLIMPEXP_CORE wxStaticText: public wxStaticTextBase
9b6dbb09 15{
31528cd3 16 DECLARE_DYNAMIC_CLASS(wxStaticText)
925f7740 17
31528cd3
VZ
18public:
19 wxStaticText() { }
925f7740 20
31528cd3 21 wxStaticText(wxWindow *parent, wxWindowID id,
83df96d6
JS
22 const wxString& label,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize,
25 long style = 0,
26 const wxString& name = wxStaticTextNameStr)
31528cd3
VZ
27 {
28 Create(parent, id, label, pos, size, style, name);
29 }
925f7740 30
31528cd3 31 bool Create(wxWindow *parent, wxWindowID id,
83df96d6
JS
32 const wxString& label,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 long style = 0,
36 const wxString& name = wxStaticTextNameStr);
925f7740 37
31528cd3
VZ
38 // implementation
39 // --------------
925f7740 40
31528cd3
VZ
41 // operations
42 virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
43 {
96be256b 44 return false;
31528cd3 45 }
925f7740 46
fe5de1ea 47 virtual void SetLabel(const wxString& label);
925f7740 48
9a595736
MB
49 // Get the widget that corresponds to the label
50 // (for font setting, label setting etc.)
6886fcfa
JS
51 virtual WXWidget GetLabelWidget() const
52 { return m_labelWidget; }
925f7740 53
39bc0347
VZ
54 virtual void DoSetLabel(const wxString& str);
55 virtual wxString DoGetLabel() const;
56
105fbe1f 57 virtual wxSize DoGetBestSize() const;
6886fcfa
JS
58protected:
59 WXWidget m_labelWidget;
9b6dbb09
JS
60};
61
62#endif
83df96d6 63// _WX_STATTEXT_H_