- m_rangeMax = r;
- if (m_gaugePos > m_rangeMax) m_gaugePos = m_rangeMax;
-
- gtk_progress_bar_update( GTK_PROGRESS_BAR(m_widget), ((float)m_gaugePos)/m_rangeMax );
+ wxSize best;
+ if (HasFlag(wxGA_VERTICAL))
+ best = wxSize(28, 100);
+ else
+ best = wxSize(100, 28);
+ CacheBestSize(best);
+ return best;
+}
+
+void wxGauge::SetRange( int range )
+{
+ m_rangeMax = range;
+ if (m_gaugePos > m_rangeMax)
+ m_gaugePos = m_rangeMax;
+
+ DoSetGauge();