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: stattext.h 35650 2005-09-23 12:56:45Z MR $
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
15class WXDLLEXPORT wxStaticText : public wxStaticTextBase
16{
17public:
18    wxStaticText() { }
19
20    // usual ctor
21    wxStaticText(wxWindow *parent,
22                 const wxString& label,
23                 const wxPoint& pos = wxDefaultPosition,
24                 const wxSize& size = wxDefaultSize)
25    {
26        Create(parent, wxID_ANY, label, pos, size, 0, wxStaticTextNameStr);
27    }
28
29    // full form
30    wxStaticText(wxWindow *parent,
31                 wxWindowID id,
32                 const wxString& label,
33                 const wxPoint& pos = wxDefaultPosition,
34                 const wxSize& size = wxDefaultSize,
35                 long style = 0,
36                 const wxString &name = wxStaticTextNameStr)
37    {
38        Create(parent, id, label, pos, size, style, name);
39    }
40
41    // function ctor
42    bool Create(wxWindow *parent,
43                wxWindowID id,
44                const wxString &label,
45                const wxPoint &pos = wxDefaultPosition,
46                const wxSize &size = wxDefaultSize,
47                long style = 0,
48                const wxString &name = wxStaticTextNameStr);
49
50    // implementation only from now on
51
52    virtual void SetLabel(const wxString& label);
53
54    virtual bool IsFocused() const { return false; }
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);
62
63    DECLARE_ABSTRACT_CLASS(wxStaticText)
64};
65
66#endif // _WX_UNIV_STATTEXT_H_
67