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