1998-09-18 10:19:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: stattext.h
|
|
|
|
// Purpose: wxStaticText class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-09-18 10:19:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_STATTEXT_H_
|
|
|
|
#define _WX_STATTEXT_H_
|
|
|
|
|
2003-05-13 20:02:15 +00:00
|
|
|
class WXDLLEXPORT wxStaticText: public wxStaticTextBase
|
1998-09-18 10:19:10 +00:00
|
|
|
{
|
1999-07-23 21:03:02 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
2002-02-05 16:34:33 +00:00
|
|
|
|
1999-07-23 21:03:02 +00:00
|
|
|
public:
|
|
|
|
wxStaticText() { }
|
2002-02-05 16:34:33 +00:00
|
|
|
|
1999-07-23 21:03:02 +00:00
|
|
|
wxStaticText(wxWindow *parent, wxWindowID id,
|
2002-02-05 16:34:33 +00:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr)
|
1999-07-23 21:03:02 +00:00
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
2002-02-05 16:34:33 +00:00
|
|
|
|
1999-07-23 21:03:02 +00:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
2002-02-05 16:34:33 +00:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr);
|
|
|
|
|
1999-07-23 21:03:02 +00:00
|
|
|
// implementation
|
|
|
|
// --------------
|
2002-02-05 16:34:33 +00:00
|
|
|
|
1999-07-23 21:03:02 +00:00
|
|
|
// operations
|
|
|
|
virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
|
|
|
|
{
|
2005-02-06 17:38:33 +00:00
|
|
|
return false;
|
1999-07-23 21:03:02 +00:00
|
|
|
}
|
2002-02-05 16:34:33 +00:00
|
|
|
|
2002-09-13 13:17:12 +00:00
|
|
|
virtual void SetLabel(const wxString& label);
|
2002-09-11 19:25:00 +00:00
|
|
|
|
2003-05-13 20:02:15 +00:00
|
|
|
// Get the widget that corresponds to the label
|
|
|
|
// (for font setting, label setting etc.)
|
2002-09-11 19:25:00 +00:00
|
|
|
virtual WXWidget GetLabelWidget() const
|
|
|
|
{ return m_labelWidget; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
WXWidget m_labelWidget;
|
1998-09-18 10:19:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2002-02-05 16:34:33 +00:00
|
|
|
// _WX_STATTEXT_H_
|