1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: statbox.h
|
|
|
|
// Purpose: wxStaticBox class
|
1999-10-15 21:00:38 +00:00
|
|
|
// Author: David Webster
|
1999-07-29 05:11:30 +00:00
|
|
|
// Modified by:
|
1999-10-15 21:00:38 +00:00
|
|
|
// Created: 10/15/99
|
1999-07-29 05:11:30 +00:00
|
|
|
// RCS-ID: $Id$
|
1999-10-15 21:00:38 +00:00
|
|
|
// Copyright: (c) David Webster
|
|
|
|
// Licence: wxWindows licence
|
1999-07-29 05:11:30 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_STATBOX_H_
|
|
|
|
#define _WX_STATBOX_H_
|
|
|
|
|
|
|
|
#include "wx/control.h"
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern const char*) wxStaticBoxNameStr;
|
|
|
|
|
|
|
|
// Group box
|
2001-07-06 21:45:11 +00:00
|
|
|
class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase
|
1999-07-29 05:11:30 +00:00
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticBox)
|
|
|
|
|
|
|
|
public:
|
1999-10-15 21:00:38 +00: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 05:12:34 +00:00
|
|
|
virtual MRESULT OS2WindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
1999-10-15 21:00:38 +00: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-21 01:03:00 +00:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
1999-10-15 21:00:38 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_EVENT_TABLE()
|
1999-07-29 05:11:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_STATBOX_H_
|
1999-10-15 21:00:38 +00:00
|
|
|
|