1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-01-22 21:28:01 -05:00
|
|
|
// Name: wx/gtk1/stattext.h
|
1998-05-20 10:01:55 -04:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 13:03:18 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2006-10-17 10:44:52 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKSTATICTEXTH__
|
|
|
|
#define __GTKSTATICTEXTH__
|
|
|
|
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/object.h"
|
|
|
|
#include "wx/list.h"
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// classes
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxStaticText;
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// global data
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxStaticText
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxStaticText : public wxControl
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-11-19 16:01:20 -05:00
|
|
|
public:
|
|
|
|
wxStaticText();
|
|
|
|
wxStaticText(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString &label,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
2006-01-22 21:28:01 -05:00
|
|
|
const wxSize &size = wxDefaultSize,
|
1999-11-19 16:01:20 -05:00
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticTextNameStr );
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString &label,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
2006-01-22 21:28:01 -05:00
|
|
|
const wxSize &size = wxDefaultSize,
|
1999-11-19 16:01:20 -05:00
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticTextNameStr );
|
|
|
|
|
|
|
|
wxString GetLabel() const;
|
1998-05-20 10:01:55 -04:00
|
|
|
void SetLabel( const wxString &label );
|
1999-11-19 16:01:20 -05:00
|
|
|
|
2004-06-21 18:58:13 -04:00
|
|
|
bool SetFont( const wxFont &font );
|
2004-03-29 13:07:31 -05:00
|
|
|
bool SetForegroundColour( const wxColour& colour );
|
2004-05-06 13:26:25 -04:00
|
|
|
|
|
|
|
static wxVisualAttributes
|
|
|
|
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
2006-01-22 21:28:01 -05:00
|
|
|
|
2005-08-17 09:47:35 -04:00
|
|
|
// see wx/stattext.h
|
|
|
|
void Wrap(int width);
|
|
|
|
|
1999-11-19 16:01:20 -05:00
|
|
|
// implementation
|
2000-01-03 06:42:49 -05:00
|
|
|
// --------------
|
1999-11-19 16:01:20 -05:00
|
|
|
|
|
|
|
protected:
|
2005-04-07 18:52:32 -04:00
|
|
|
virtual void DoSetSize(int x, int y,
|
|
|
|
int width, int height,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
2006-01-22 21:28:01 -05:00
|
|
|
|
2000-01-03 06:42:49 -05:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
|
|
|
|
1999-11-19 16:01:20 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2006-10-17 10:44:52 -04:00
|
|
|
#endif
|
|
|
|
// __GTKSTATICTEXTH__
|