/////////////////////////////////////////////////////////////////////////////
-// Name: univ/statbmp.cpp
+// Name: src/univ/statbmp.cpp
// Purpose: wxStaticBitmap implementation
// Author: Vadim Zeitlin
// Modified by:
// Created: 25.08.00
// RCS-ID: $Id$
// Copyright: (c) 2000 SciTech Software, Inc. (www.scitechsoft.com)
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "univstatbmp.h"
-#endif
-
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#if wxUSE_STATBMP
+#include "wx/statbmp.h"
+
#ifndef WX_PRECOMP
#include "wx/dc.h"
#include "wx/icon.h"
- #include "wx/statbmp.h"
#include "wx/validate.h"
#endif
const wxString &name)
{
if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) )
- return FALSE;
+ return false;
// set bitmap first
SetBitmap(label);
// and adjust our size to fit it after this
- SetBestSize(size);
+ SetInitialSize(size);
- return TRUE;
+ return true;
}
// ----------------------------------------------------------------------------
}
#endif // wxUSE_STATBMP
-