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;
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxStaticText: public wxControl
|
|
|
|
{
|
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
|
|
|
|
1999-10-17 23:30:47 -04:00
|
|
|
inline wxStaticText(wxWindow *parent, wxWindowID id,
|
1999-07-29 01:11:30 -04:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr)
|
1999-10-17 23:30:47 -04:00
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
1999-07-29 01:11:30 -04:00
|
|
|
|
1999-10-17 23:30:47 -04:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
1999-07-29 01:11:30 -04:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr);
|
|
|
|
|
1999-10-17 23:30:47 -04: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);
|
|
|
|
virtual MRESULT OS2WindowProc(HWND hwnd, WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
1999-07-29 01:11:30 -04:00
|
|
|
|
1999-10-17 23:30:47 -04:00
|
|
|
protected:
|
1999-11-20 20:03:00 -05:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
1999-07-29 01:11:30 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_STATTEXT_H_
|