// 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
+{
+ if (HasFlag(wxGA_HORIZONTAL))
+ return wxSize(100, 28);
+ else
+ return wxSize(28, 100);
+}
+
void wxGauge::SetRange( int range )
{
m_rangeMax = range;