1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2003-01-10 18:24:44 -05:00
|
|
|
// Name: wx/msw/stattext.h
|
1998-05-20 10:12:05 -04:00
|
|
|
// Purpose: wxStaticText class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
#ifndef _WX_STATTEXT_H_
|
|
|
|
#define _WX_STATTEXT_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1999-01-31 18:49:57 -05:00
|
|
|
public:
|
|
|
|
wxStaticText() { }
|
1999-07-02 18:02:05 -04:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
wxStaticText(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr)
|
1999-01-31 18:49:57 -05:00
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
1999-07-02 18:02:05 -04:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
bool Create(wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr);
|
1999-07-02 18:02:05 -04:00
|
|
|
|
2004-06-21 18:58:13 -04:00
|
|
|
// override some methods to resize the window properly
|
|
|
|
virtual void SetLabel(const wxString& label);
|
|
|
|
virtual bool SetFont( const wxFont &font );
|
|
|
|
|
2006-02-08 16:47:09 -05:00
|
|
|
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
|
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
protected:
|
2003-01-10 18:24:44 -05:00
|
|
|
// implement/override some base class virtuals
|
2001-12-18 20:27:26 -05:00
|
|
|
virtual void DoSetSize(int x, int y, int w, int h,
|
|
|
|
int sizeFlags = wxSIZE_AUTO);
|
1999-11-19 16:01:20 -05:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
2001-12-18 20:27:26 -05:00
|
|
|
|
2007-04-01 10:13:15 -04:00
|
|
|
virtual wxString DoGetLabel() const;
|
|
|
|
virtual void DoSetLabel(const wxString& str);
|
|
|
|
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_STATTEXT_H_
|