]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/stattext.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / univ / stattext.h
CommitLineData
1e6feb95
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/univ/stattext.h
3// Purpose: wxStaticText
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 14.08.00
442b35b5 7// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
65571936 8// Licence: wxWindows licence
1e6feb95
VZ
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_UNIV_STATTEXT_H_
12#define _WX_UNIV_STATTEXT_H_
13
916eabe6
VZ
14#include "wx/generic/stattextg.h"
15
16class WXDLLIMPEXP_CORE wxStaticText : public wxGenericStaticText
1e6feb95
VZ
17{
18public:
55e0770e
VS
19 wxStaticText() { }
20
1e6feb95
VZ
21 // usual ctor
22 wxStaticText(wxWindow *parent,
23 const wxString& label,
24 const wxPoint& pos = wxDefaultPosition,
25 const wxSize& size = wxDefaultSize)
26 {
a290fa5a 27 Create(parent, wxID_ANY, label, pos, size, 0, wxStaticTextNameStr);
1e6feb95
VZ
28 }
29
30 // full form
31 wxStaticText(wxWindow *parent,
32 wxWindowID id,
33 const wxString& label,
34 const wxPoint& pos = wxDefaultPosition,
3379ed37 35 const wxSize& size = wxDefaultSize,
1e6feb95
VZ
36 long style = 0,
37 const wxString &name = wxStaticTextNameStr)
38 {
39 Create(parent, id, label, pos, size, style, name);
40 }
41
42 // function ctor
43 bool Create(wxWindow *parent,
44 wxWindowID id,
45 const wxString &label,
46 const wxPoint &pos = wxDefaultPosition,
3379ed37 47 const wxSize &size = wxDefaultSize,
1e6feb95
VZ
48 long style = 0,
49 const wxString &name = wxStaticTextNameStr);
50
51 // implementation only from now on
52
53 virtual void SetLabel(const wxString& label);
54
a290fa5a 55 virtual bool IsFocused() const { return false; }
2cdd094b 56
1e6feb95 57protected:
1e6feb95
VZ
58 // draw the control
59 virtual void DoDraw(wxControlRenderer *renderer);
3379ed37 60
39bc0347
VZ
61 virtual void DoSetLabel(const wxString& str);
62 virtual wxString DoGetLabel() const;
63
f9c77abc 64 DECLARE_DYNAMIC_CLASS(wxStaticText)
1e6feb95
VZ
65};
66
67#endif // _WX_UNIV_STATTEXT_H_