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"
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const char*) wxStaticTextNameStr;
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxStaticText: public wxControl
|
|
|
|
{
|
1999-10-18 03:30:47 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
|
|
|
|
1999-07-29 05:11:30 +00:00
|
|
|
public:
|
1999-10-18 03:30:47 +00:00
|
|
|
inline wxStaticText() { }
|
1999-07-29 05:11:30 +00:00
|
|
|
|
1999-10-18 03:30:47 +00:00
|
|
|
inline wxStaticText(wxWindow *parent, wxWindowID id,
|
1999-07-29 05:11:30 +00:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr)
|
1999-10-18 03:30:47 +00:00
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
1999-07-29 05:11:30 +00:00
|
|
|
|
1999-10-18 03:30:47 +00:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
1999-07-29 05:11:30 +00:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr);
|
|
|
|
|
1999-10-18 03:30:47 +00:00
|
|
|
// accessors
|
|
|
|
void SetLabel(const wxString&);
|
|
|
|
|
|
|
|
// overriden base class virtuals
|
|
|
|
virtual bool AcceptsFocus() const { return FALSE; }
|
|
|
|
|
|
|
|
// callbacks
|
|
|
|
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
|
|
|
|
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
2000-02-21 05:12:34 +00:00
|
|
|
virtual MRESULT OS2WindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
1999-07-29 05:11:30 +00:00
|
|
|
|
1999-10-18 03:30:47 +00:00
|
|
|
protected:
|
1999-11-21 01:03:00 +00:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
1999-07-29 05:11:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_STATTEXT_H_
|