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
|
1999-11-14 20:19:46 -05:00
|
|
|
// 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
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1999-11-14 20:19:46 -05:00
|
|
|
#pragma interface "statbox.h"
|
1998-05-20 10:12:05 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// Group box
|
2001-06-26 16:59:19 -04:00
|
|
|
class WXDLLEXPORT wxStaticBox : public wxStaticBoxBase
|
1998-05-20 10:12: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
|
|
|
|
// --------------------------
|
|
|
|
|
2004-02-25 05:45:02 -05:00
|
|
|
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
1998-05-20 10:12: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-11-19 16:01:20 -05:00
|
|
|
virtual wxSize DoGetBestSize() const;
|
2001-06-26 16:59:19 -04:00
|
|
|
|
|
|
|
private:
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticBox)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_STATBOX_H_
|