]>
Commit | Line | Data |
---|---|---|
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 | |
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 | ||
53a2db12 | 15 | class WXDLLIMPEXP_CORE wxStaticText: public wxStaticTextBase |
9b6dbb09 | 16 | { |
31528cd3 | 17 | DECLARE_DYNAMIC_CLASS(wxStaticText) |
925f7740 | 18 | |
31528cd3 VZ |
19 | public: |
20 | wxStaticText() { } | |
925f7740 | 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 | } | |
925f7740 | 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); | |
925f7740 | 38 | |
31528cd3 VZ |
39 | // implementation |
40 | // -------------- | |
925f7740 | 41 | |
31528cd3 VZ |
42 | // operations |
43 | virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event)) | |
44 | { | |
96be256b | 45 | return false; |
31528cd3 | 46 | } |
925f7740 | 47 | |
fe5de1ea | 48 | virtual void SetLabel(const wxString& label); |
925f7740 | 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; } | |
925f7740 | 54 | |
39bc0347 VZ |
55 | virtual void DoSetLabel(const wxString& str); |
56 | virtual wxString DoGetLabel() const; | |
57 | ||
105fbe1f | 58 | virtual wxSize DoGetBestSize() const; |
6886fcfa JS |
59 | protected: |
60 | WXWidget m_labelWidget; | |
9b6dbb09 JS |
61 | }; |
62 | ||
63 | #endif | |
83df96d6 | 64 | // _WX_STATTEXT_H_ |