1998-09-18 06:19:10 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-07-25 10:31:55 -04:00
|
|
|
// Name: wx/motif/stattext.h
|
1998-09-18 06:19:10 -04:00
|
|
|
// 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-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)
|
2006-07-25 10:31:55 -04:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
public:
|
|
|
|
wxStaticText() { }
|
2006-07-25 10:31:55 -04: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);
|
|
|
|
}
|
2006-07-25 10:31:55 -04: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);
|
2006-07-25 10:31:55 -04:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
// implementation
|
|
|
|
// --------------
|
2006-07-25 10:31:55 -04:00
|
|
|
|
1999-07-23 17:03:02 -04:00
|
|
|
// operations
|
|
|
|
virtual bool ProcessCommand(wxCommandEvent& WXUNUSED(event))
|
|
|
|
{
|
2005-02-06 12:38:33 -05:00
|
|
|
return false;
|
1999-07-23 17:03:02 -04:00
|
|
|
}
|
2006-07-25 10:31:55 -04:00
|
|
|
|
2002-09-13 09:17:12 -04:00
|
|
|
virtual void SetLabel(const wxString& label);
|
2006-07-25 10:31:55 -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; }
|
2006-07-25 10:31:55 -04:00
|
|
|
|
2007-04-01 10:13:15 -04:00
|
|
|
virtual void DoSetLabel(const wxString& str);
|
|
|
|
virtual wxString DoGetLabel() const;
|
|
|
|
|
2007-04-07 17:18:33 -04:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
2002-09-11 15:25:00 -04:00
|
|
|
protected:
|
|
|
|
WXWidget m_labelWidget;
|
1998-09-18 06:19:10 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2002-02-05 11:34:33 -05:00
|
|
|
// _WX_STATTEXT_H_
|