2001-06-26 20:59:19 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/univ/stattext.h
|
|
|
|
// Purpose: wxStaticText
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 14.08.00
|
|
|
|
// RCS-ID: $Id$
|
2001-07-02 19:42:27 +00:00
|
|
|
// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
|
2001-06-26 20:59:19 +00:00
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_UNIV_STATTEXT_H_
|
|
|
|
#define _WX_UNIV_STATTEXT_H_
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
2001-07-04 17:12:37 +00:00
|
|
|
#pragma interface "stattext.h"
|
2001-06-26 20:59:19 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxStaticText : public wxStaticTextBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
// usual ctor
|
|
|
|
wxStaticText(wxWindow *parent,
|
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize)
|
|
|
|
{
|
|
|
|
Create(parent, -1, label, pos, size, 0, wxStaticTextNameStr);
|
|
|
|
}
|
|
|
|
|
|
|
|
// full form
|
|
|
|
wxStaticText(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
2001-07-03 19:38:19 +00:00
|
|
|
const wxSize& size = wxDefaultSize,
|
2001-06-26 20:59:19 +00:00
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticTextNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
// function ctor
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString &label,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
2001-07-03 19:38:19 +00:00
|
|
|
const wxSize &size = wxDefaultSize,
|
2001-06-26 20:59:19 +00:00
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticTextNameStr);
|
|
|
|
|
|
|
|
// implementation only from now on
|
|
|
|
|
|
|
|
virtual void SetLabel(const wxString& label);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// calculate the optimal size for the label
|
|
|
|
virtual wxSize DoGetBestClientSize() const;
|
|
|
|
|
|
|
|
// draw the control
|
|
|
|
virtual void DoDraw(wxControlRenderer *renderer);
|
2001-07-03 19:38:19 +00:00
|
|
|
|
|
|
|
DECLARE_ABSTRACT_CLASS(wxStaticText)
|
2001-06-26 20:59:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_UNIV_STATTEXT_H_
|