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