1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: statbox.h
|
|
|
|
// Purpose: wxStaticBox class
|
1999-10-15 17:00:38 -04:00
|
|
|
// Author: David Webster
|
1999-07-29 01:11:30 -04:00
|
|
|
// Modified by:
|
1999-10-15 17:00:38 -04:00
|
|
|
// Created: 10/15/99
|
1999-07-29 01:11:30 -04:00
|
|
|
// RCS-ID: $Id$
|
1999-10-15 17:00:38 -04:00
|
|
|
// Copyright: (c) David Webster
|
|
|
|
// Licence: wxWindows licence
|
1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_STATBOX_H_
|
|
|
|
#define _WX_STATBOX_H_
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const char*) wxStaticBoxNameStr;
|
|
|
|
|
|
|
|
// Group box
|
2001-07-06 17:45:11 -04:00
|
|
|
class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase
|
1999-07-29 01:11:30 -04:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticBox)
|
|
|
|
|
|
|
|
public:
|
1999-10-15 17:00:38 -04:00
|
|
|
inline wxStaticBox() {}
|
|
|
|
inline wxStaticBox( wxWindow* parent
|
|
|
|
,wxWindowID id
|
|
|
|
,const wxString& label
|
|
|
|
,const wxPoint& pos = wxDefaultPosition
|
|
|
|
,const wxSize& size = wxDefaultSize
|
|
|
|
,long style = 0
|
|
|
|
,const wxString& name = wxStaticBoxNameStr
|
|
|
|
)
|
|
|
|
{
|
|
|
|
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 = wxStaticBoxNameStr
|
|
|
|
);
|
|
|
|
|
|
|
|
// implementation from now on
|
|
|
|
// --------------------------
|
|
|
|
|
|
|
|
void OnEraseBackground(wxEraseEvent& event);
|
|
|
|
|
2000-02-21 00:12:34 -05:00
|
|
|
virtual MRESULT OS2WindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
1999-10-15 17:00:38 -04:00
|
|
|
|
|
|
|
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
|
|
|
|
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
|
|
|
|
|
|
|
// overriden base class virtuals
|
|
|
|
virtual bool AcceptsFocus() const { return FALSE; }
|
|
|
|
|
|
|
|
protected:
|
1999-11-20 20:03:00 -05:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
1999-10-15 17:00:38 -04:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
1999-07-29 01:11:30 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_STATBOX_H_
|
1999-10-15 17:00:38 -04:00
|
|
|
|