// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "gauge.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
#include "wx/gauge.h"
#if wxUSE_GAUGE
m_parent->DoAddChild( this );
PostCreation();
-
+ SetBestSize(size);
+
Show( TRUE );
return TRUE;
m_rangeMax ? ((float)m_gaugePos)/m_rangeMax : 0.);
}
+wxSize wxGauge::DoGetBestSize() const
+{
+ return wxSize(100, 28);
+}
+
void wxGauge::SetRange( int range )
{
m_rangeMax = range;