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