/////////////////////////////////////////////////////////////////////////////
-// Name: univ/statbox.cpp
+// Name: src/univ/statbox.cpp
// Purpose: wxStaticBox implementation
// Author: Vadim Zeitlin
// Modified by:
// Created: 25.08.00
// RCS-ID: $Id$
// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
- #pragma implementation "univstatbox.h"
-#endif
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
// implementation
// ============================================================================
-IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl)
-
// ----------------------------------------------------------------------------
// wxStaticBox
// ----------------------------------------------------------------------------
long style,
const wxString &name)
{
- if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) )
- return FALSE;
+ // FIXME refresh just the right/bottom parts affected in OnSize
+ style |= wxFULL_REPAINT_ON_RESIZE;
- m_hasDialogBackground = TRUE;
+ if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) )
+ return false;
SetLabel(label);
- return TRUE;
+ return true;
}
void wxStaticBox::DoDraw(wxControlRenderer *renderer)