1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: stattext.h
|
|
|
|
// Purpose: wxStaticText class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
#ifndef _WX_STATTEXT_H_
|
|
|
|
#define _WX_STATTEXT_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
1999-01-31 18:49:57 -05:00
|
|
|
#pragma interface "stattext.h"
|
1998-05-20 10:12:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const char*) wxStaticTextNameStr;
|
|
|
|
|
1999-01-31 18:49:57 -05:00
|
|
|
class WXDLLEXPORT wxStaticText : public wxControl
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1999-01-31 18:49:57 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-01-31 18:49:57 -05:00
|
|
|
public:
|
|
|
|
wxStaticText() { }
|
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr);
|
|
|
|
|
|
|
|
// accessors
|
|
|
|
void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
|
|
|
|
void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO)
|
1998-11-28 08:38:40 -05:00
|
|
|
{ wxWindow::SetSize(rect, sizeFlags); }
|
1999-01-31 18:49:57 -05:00
|
|
|
void SetSize(const wxSize& size)
|
|
|
|
{ wxWindow::SetSize(size); }
|
|
|
|
void SetLabel(const wxString& label);
|
|
|
|
|
|
|
|
// operations
|
|
|
|
virtual void Command(wxCommandEvent& WXUNUSED(event)) { }
|
|
|
|
virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) { }
|
|
|
|
|
|
|
|
// 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 long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_STATTEXT_H_
|