1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: stattext.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
1998-05-20 14:01:55 +00:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GTKSTATICTEXTH__
|
|
|
|
#define __GTKSTATICTEXTH__
|
|
|
|
|
2002-09-07 12:28:46 +00:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
1998-05-20 14:01:55 +00:00
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/object.h"
|
|
|
|
#include "wx/list.h"
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// classes
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class wxStaticText;
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// global data
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxStaticText
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
1999-11-19 21:01:20 +00:00
|
|
|
class wxStaticText : public wxControl
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1999-11-19 21:01:20 +00:00
|
|
|
public:
|
|
|
|
wxStaticText();
|
|
|
|
wxStaticText(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString &label,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticTextNameStr );
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString &label,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticTextNameStr );
|
|
|
|
|
|
|
|
wxString GetLabel() const;
|
1998-05-20 14:01:55 +00:00
|
|
|
void SetLabel( const wxString &label );
|
1999-11-19 21:01:20 +00:00
|
|
|
|
2000-01-03 11:42:49 +00:00
|
|
|
bool SetFont( const wxFont &font );
|
|
|
|
|
1999-11-19 21:01:20 +00:00
|
|
|
// implementation
|
2000-01-03 11:42:49 +00:00
|
|
|
// --------------
|
|
|
|
|
1998-10-29 18:03:18 +00:00
|
|
|
void ApplyWidgetStyle();
|
1999-11-19 21:01:20 +00:00
|
|
|
|
|
|
|
protected:
|
2000-01-03 11:42:49 +00:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
|
|
|
|
1999-11-19 21:01:20 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GTKSTATICTEXTH__
|