1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: stattext.h
|
|
|
|
// Purpose: wxStaticText class
|
1999-10-18 03:30:47 +00:00
|
|
|
// Author: David Webster
|
1999-07-29 05:11:30 +00:00
|
|
|
// Modified by:
|
1999-10-18 03:30:47 +00:00
|
|
|
// Created: 10/17/99
|
1999-07-29 05:11:30 +00:00
|
|
|
// RCS-ID: $Id$
|
1999-10-18 03:30:47 +00:00
|
|
|
// Copyright: (c) David Webster
|
|
|
|
// Licence: wxWindows licence
|
1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_STATTEXT_H_
|
|
|
|
#define _WX_STATTEXT_H_
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "stattext.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
2001-12-21 20:42:20 +00:00
|
|
|
class WXDLLEXPORT wxStaticText : public wxStaticTextBase
|
1999-07-29 05:11:30 +00:00
|
|
|
{
|
2001-12-17 22:56:41 +00:00
|
|
|
public:
|
1999-10-18 03:30:47 +00:00
|
|
|
inline wxStaticText() { }
|
2001-04-16 22:26:36 +00:00
|
|
|
inline wxStaticText( wxWindow* pParent
|
|
|
|
,wxWindowID vId
|
|
|
|
,const wxString& rsLabel
|
|
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
|
|
,const wxSize& rSize = wxDefaultSize
|
|
|
|
,long lStyle = 0L
|
|
|
|
,const wxString& rsName = wxStaticTextNameStr
|
|
|
|
)
|
1999-10-18 03:30:47 +00:00
|
|
|
{
|
2001-04-16 22:26:36 +00:00
|
|
|
Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
|
1999-10-18 03:30:47 +00:00
|
|
|
}
|
1999-07-29 05:11:30 +00:00
|
|
|
|
2001-04-16 22:26:36 +00:00
|
|
|
bool Create( wxWindow* pParent
|
|
|
|
,wxWindowID vId
|
|
|
|
,const wxString& rsLabel
|
|
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
|
|
,const wxSize& rSize = wxDefaultSize
|
|
|
|
,long lStyle = 0L
|
|
|
|
,const wxString& rsName = wxStaticTextNameStr
|
|
|
|
);
|
1999-07-29 05:11:30 +00:00
|
|
|
|
2001-04-16 22:26:36 +00:00
|
|
|
//
|
|
|
|
// Accessors
|
|
|
|
//
|
2001-12-21 20:42:20 +00:00
|
|
|
virtual void SetLabel(const wxString& rsLabel);
|
|
|
|
virtual bool SetFont(const wxFont &rFont);
|
1999-10-18 03:30:47 +00:00
|
|
|
|
2001-04-16 22:26:36 +00:00
|
|
|
//
|
|
|
|
// Overriden base class virtuals
|
|
|
|
//
|
1999-10-18 03:30:47 +00:00
|
|
|
virtual bool AcceptsFocus() const { return FALSE; }
|
|
|
|
|
2001-04-16 22:26:36 +00:00
|
|
|
//
|
|
|
|
// Callbacks
|
|
|
|
//
|
|
|
|
virtual MRESULT OS2WindowProc( WXUINT uMsg
|
|
|
|
,WXWPARAM wParam
|
|
|
|
,WXLPARAM lParam
|
|
|
|
);
|
1999-07-29 05:11:30 +00:00
|
|
|
|
1999-10-18 03:30:47 +00:00
|
|
|
protected:
|
2001-12-21 20:42:20 +00:00
|
|
|
virtual void DoSetSize( int nX
|
|
|
|
,int nY
|
|
|
|
,int nWidth
|
|
|
|
,int nHeight
|
|
|
|
,int nSizeFlags = wxSIZE_AUTO
|
|
|
|
);
|
2001-04-16 22:26:36 +00:00
|
|
|
virtual wxSize DoGetBestSize(void) const;
|
2001-12-17 22:56:41 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
2001-04-16 22:26:36 +00:00
|
|
|
}; // end of CLASS wxStaticText
|
1999-07-29 05:11:30 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_STATTEXT_H_
|