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