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
|
|
|
|
// 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"
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const char*) wxStaticTextNameStr;
|
|
|
|
|
2001-04-16 18:26:36 -04:00
|
|
|
class WXDLLEXPORT wxStaticText : public wxControl
|
1999-07-29 01:11:30 -04:00
|
|
|
{
|
1999-10-17 23:30:47 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
|
|
|
|
1999-07-29 01:11:30 -04:00
|
|
|
public:
|
1999-10-17 23:30:47 -04:00
|
|
|
inline wxStaticText() { }
|
1999-07-29 01:11:30 -04:00
|
|
|
|
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
|
|
|
|
//
|
1999-10-17 23:30:47 -04:00
|
|
|
void SetLabel(const wxString&);
|
2001-04-16 18:26:36 -04:00
|
|
|
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-04-16 18:26:36 -04:00
|
|
|
virtual wxSize DoGetBestSize(void) const;
|
|
|
|
}; // end of CLASS wxStaticText
|
1999-07-29 01:11:30 -04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_STATTEXT_H_
|