]> git.saurik.com Git - wxWidgets.git/blame - include/wx/univ/stattext.h
applied SourceForge patch #440594 which corrects ListBox related errors
[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)
1e6feb95
VZ
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_UNIV_STATTEXT_H_
13#define _WX_UNIV_STATTEXT_H_
14
15#ifdef __GNUG__
a3870b2f 16 #pragma interface "univstattext.h"
1e6feb95
VZ
17#endif
18
19class WXDLLEXPORT wxStaticText : public wxStaticTextBase
20{
21public:
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, -1, 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,
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
56protected:
57 // calculate the optimal size for the label
58 virtual wxSize DoGetBestClientSize() const;
59
60 // draw the control
61 virtual void DoDraw(wxControlRenderer *renderer);
3379ed37
VZ
62
63 DECLARE_ABSTRACT_CLASS(wxStaticText)
1e6feb95
VZ
64};
65
66#endif // _WX_UNIV_STATTEXT_H_