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"
|
|
|
|
|
|
|
|
// Group box
|
2001-07-06 17:45:11 -04:00
|
|
|
class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase
|
1999-07-29 01:11:30 -04:00
|
|
|
{
|
2001-12-17 17:56:41 -05:00
|
|
|
public:
|
1999-10-15 17:00:38 -04:00
|
|
|
inline wxStaticBox() {}
|
2001-12-17 17:56:41 -05:00
|
|
|
inline wxStaticBox( wxWindow* pParent
|
|
|
|
,wxWindowID vId
|
|
|
|
,const wxString& rsLabel
|
|
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
|
|
,const wxSize& rSize = wxDefaultSize
|
|
|
|
,long lStyle = 0
|
|
|
|
,const wxString& rsName = wxStaticBoxNameStr
|
1999-10-15 17:00:38 -04:00
|
|
|
)
|
|
|
|
{
|
2001-12-17 17:56:41 -05:00
|
|
|
Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
|
1999-10-15 17:00:38 -04:00
|
|
|
}
|
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
bool Create( wxWindow* pParent
|
|
|
|
,wxWindowID vId
|
|
|
|
,const wxString& rsLabel
|
|
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
|
|
,const wxSize& rSize = wxDefaultSize
|
|
|
|
,long lStyle = 0
|
|
|
|
,const wxString& rsName = wxStaticBoxNameStr
|
|
|
|
);
|
1999-10-15 17:00:38 -04:00
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
//
|
1999-10-15 17:00:38 -04:00
|
|
|
// implementation from now on
|
|
|
|
// --------------------------
|
2001-12-17 17:56:41 -05:00
|
|
|
//
|
|
|
|
virtual MRESULT OS2WindowProc( WXUINT uMsg
|
|
|
|
,WXWPARAM wParam
|
|
|
|
,WXLPARAM lParam
|
|
|
|
);
|
1999-10-15 17:00:38 -04:00
|
|
|
|
2001-12-17 17:56:41 -05:00
|
|
|
//
|
1999-10-15 17:00:38 -04:00
|
|
|
// overriden base class virtuals
|
2001-12-17 17:56:41 -05:00
|
|
|
//
|
|
|
|
inline virtual bool AcceptsFocus(void) const { return FALSE; }
|
1999-10-15 17:00:38 -04:00
|
|
|
|
|
|
|
protected:
|
2001-12-17 17:56:41 -05:00
|
|
|
virtual wxSize DoGetBestSize(void) const;
|
1999-10-15 17:00:38 -04:00
|
|
|
|
|
|
|
private:
|
2001-12-17 17:56:41 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticBox)
|
|
|
|
}; // end of CLASS wxStaticBox
|
1999-07-29 01:11:30 -04:00
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_STATBOX_H_
|
1999-10-15 17:00:38 -04:00
|
|
|
|