1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2001-06-26 16:59:19 -04:00
|
|
|
// Name: wx/gtk/stabox.h
|
1998-05-20 10:01:55 -04:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 13:03:18 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKSTATICBOXH__
|
|
|
|
#define __GTKSTATICBOXH__
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxStaticBox
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
2001-06-26 16:59:19 -04:00
|
|
|
public:
|
|
|
|
wxStaticBox();
|
|
|
|
wxStaticBox( wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString &label,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticBoxNameStr );
|
|
|
|
bool Create( wxWindow *parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString &label,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = 0,
|
|
|
|
const wxString &name = wxStaticBoxNameStr );
|
|
|
|
|
|
|
|
virtual void SetLabel( const wxString &label );
|
|
|
|
|
2004-05-06 13:26:25 -04:00
|
|
|
static wxVisualAttributes
|
|
|
|
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
// implementation
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2002-05-31 10:13:17 -04:00
|
|
|
virtual bool IsTransparentForMouse() const { return TRUE; }
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2006-05-22 22:04:01 -04:00
|
|
|
virtual void GetBordersForSizer(int *borderTop, int *borderOther) const;
|
|
|
|
|
2009-04-25 06:49:36 -04:00
|
|
|
virtual void AddChild( wxWindowBase *child );
|
|
|
|
|
2004-07-03 12:58:10 -04:00
|
|
|
protected:
|
2006-03-12 09:21:19 -05:00
|
|
|
virtual bool GTKWidgetNeedsMnemonic() const;
|
|
|
|
virtual void GTKWidgetDoSetMnemonic(GtkWidget* w);
|
|
|
|
|
2004-07-03 12:58:10 -04:00
|
|
|
void DoApplyWidgetStyle(GtkRcStyle *style);
|
2009-08-21 06:41:26 -04:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticBox)
|
|
|
|
};
|
1999-06-14 19:04:05 -04:00
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif // __GTKSTATICBOXH__
|