]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/univ/stattext.h
Fix missing documentation for several GDI functions.
[wxWidgets.git] / include / wx / univ / stattext.h
... / ...
CommitLineData
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$
8// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_UNIV_STATTEXT_H_
13#define _WX_UNIV_STATTEXT_H_
14
15#include "wx/generic/stattextg.h"
16
17class WXDLLIMPEXP_CORE wxStaticText : public wxGenericStaticText
18{
19public:
20 wxStaticText() { }
21
22 // usual ctor
23 wxStaticText(wxWindow *parent,
24 const wxString& label,
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize)
27 {
28 Create(parent, wxID_ANY, label, pos, size, 0, wxStaticTextNameStr);
29 }
30
31 // full form
32 wxStaticText(wxWindow *parent,
33 wxWindowID id,
34 const wxString& label,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
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,
48 const wxSize &size = wxDefaultSize,
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
56 virtual bool IsFocused() const { return false; }
57
58protected:
59 // draw the control
60 virtual void DoDraw(wxControlRenderer *renderer);
61
62 virtual void DoSetLabel(const wxString& str);
63 virtual wxString DoGetLabel() const;
64
65 DECLARE_DYNAMIC_CLASS(wxStaticText)
66};
67
68#endif // _WX_UNIV_STATTEXT_H_