1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: statbox.h
|
|
|
|
// Purpose: wxStaticBox 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_STATBOX_H_
|
|
|
|
#define _WX_STATBOX_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "statbox.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
1999-06-10 14:12:13 -04:00
|
|
|
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBoxNameStr;
|
1998-05-20 10:12:05 -04:00
|
|
|
|
|
|
|
// Group box
|
1999-01-31 18:30:33 -05:00
|
|
|
class WXDLLEXPORT wxStaticBox : public wxControl
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1999-01-31 18:30:33 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticBox)
|
1999-07-02 18:02:05 -04:00
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
public:
|
1999-02-22 06:01:13 -05:00
|
|
|
wxStaticBox() { }
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
wxStaticBox(wxWindow *parent, wxWindowID id,
|
1999-07-22 19:39:47 -04:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticBoxNameStr)
|
1999-01-31 18:30:33 -05:00
|
|
|
{
|
|
|
|
Create(parent, id, label, pos, size, style, name);
|
|
|
|
}
|
1999-07-02 18:02:05 -04:00
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
1999-07-22 19:39:47 -04:00
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString& name = wxStaticBoxNameStr);
|
1999-07-02 18:02:05 -04:00
|
|
|
|
|
|
|
// implementation from now on
|
|
|
|
// --------------------------
|
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
void OnEraseBackground(wxEraseEvent& event);
|
1999-07-02 18:02:05 -04:00
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
|
|
|
|
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
1999-07-02 18:02:05 -04:00
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
// overriden base class virtuals
|
|
|
|
virtual bool AcceptsFocus() const { return FALSE; }
|
1999-07-02 18:02:05 -04:00
|
|
|
|
1999-02-22 06:01:13 -05:00
|
|
|
protected:
|
1999-07-02 18:02:05 -04:00
|
|
|
virtual wxSize DoGetBestSize();
|
1999-02-22 06:01:13 -05:00
|
|
|
|
1999-01-31 18:30:33 -05:00
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_STATBOX_H_
|