1998-09-18 06:19:10 -04: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 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-09-18 06:19:10 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_STATTEXT_H_
|
|
|
|
#define _WX_STATTEXT_H_
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1998-09-18 06:19:10 -04:00
|
|
|
#pragma interface "stattext.h"
|
|
|
|
#endif
|
|
|
|
|
2003-05-13 16:02:15 -04:00
|
|
|
class WXDLLEXPORT wxStaticText: public wxStaticTextBase
|
1998-09-18 06:19:10 -04:00
|
|
|
{
|
1999-07-23 17:03:02 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
2002-02-05 11:34:33 -05:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
public:
|
|
|
|
wxStaticText() { }
|
2002-02-05 11:34:33 -05:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
wxStaticText(wxWindow *parent, wxWindowID id,
|
2002-02-05 11:34:33 -05:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr)
|
1999-07-23 17:03:02 -04:00
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
2002-02-05 11:34:33 -05:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
2002-02-05 11:34:33 -05:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr);
|
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
// implementation
|
|
|
|
// --------------
|
2002-02-05 11:34:33 -05:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
// operations
|
|
|
|
virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
|
|
|
|
{
|
|
|
|
return FALSE;
|
|
|
|
}
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2002-09-13 09:17:12 -04:00
|
|
|
virtual void SetLabel(const wxString& label);
|
2002-09-11 15:25:00 -04:00
|
|
|
|
2003-05-13 16:02:15 -04:00
|
|
|
// Get the widget that corresponds to the label
|
|
|
|
// (for font setting, label setting etc.)
|
2002-09-11 15:25:00 -04:00
|
|
|
virtual WXWidget GetLabelWidget() const
|
|
|
|
{ return m_labelWidget; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
WXWidget m_labelWidget;
|
1998-09-18 06:19:10 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2002-02-05 11:34:33 -05:00
|
|
|
// _WX_STATTEXT_H_
|