1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: stattext.h
|
|
|
|
// Purpose: wxStaticText class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 23:52:45 +00:00
|
|
|
// Copyright: (c) Julian Smart
|
1999-07-02 22:02:05 +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
|
|
|
|
|
|
|
#ifdef __GNUG__
|
1999-01-31 23:49:57 +00:00
|
|
|
#pragma interface "stattext.h"
|
1998-05-20 14:12:05 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
1999-06-10 18:12:13 +00:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticTextNameStr;
|
1998-05-20 14:12:05 +00:00
|
|
|
|
1999-01-31 23:49:57 +00:00
|
|
|
class WXDLLEXPORT wxStaticText : public wxControl
|
1998-05-20 14:12:05 +00:00
|
|
|
{
|
1999-01-31 23:49:57 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
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
|
|
|
|
1999-01-31 23:49:57 +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)
|
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
1999-07-02 22:02:05 +00:00
|
|
|
|
1999-01-31 23:49:57 +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
|
|
|
|
1999-01-31 23:49:57 +00:00
|
|
|
// accessors
|
|
|
|
void SetLabel(const wxString& label);
|
1999-07-02 22:02:05 +00:00
|
|
|
|
1999-01-31 23:49:57 +00:00
|
|
|
// overriden base class virtuals
|
|
|
|
virtual bool AcceptsFocus() const { return FALSE; }
|
1999-07-02 22:02:05 +00:00
|
|
|
|
1999-01-31 23:49:57 +00:00
|
|
|
// callbacks
|
|
|
|
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
|
1999-05-19 00:53:27 +00:00
|
|
|
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
1999-01-31 23:49:57 +00:00
|
|
|
virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
1999-02-22 11:01:13 +00:00
|
|
|
|
|
|
|
protected:
|
1999-07-02 22:02:05 +00:00
|
|
|
virtual wxSize DoGetBestSize();
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 23:52:45 +00:00
|
|
|
// _WX_STATTEXT_H_
|