git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26154
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// set the gauge value to the value of m_gaugePos
void DoSetGauge();
+ virtual wxSize DoGetBestSize() const;
+
private:
DECLARE_DYNAMIC_CLASS(wxGauge)
};
// set the gauge value to the value of m_gaugePos
void DoSetGauge();
+ virtual wxSize DoGetBestSize() const;
+
private:
DECLARE_DYNAMIC_CLASS(wxGauge)
};
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;
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;