X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..70cbdccac913638f8c153676b56428fcb39b6728:/src/gtk1/gauge.cpp diff --git a/src/gtk1/gauge.cpp b/src/gtk1/gauge.cpp index 693dbce205..45f1d7b869 100644 --- a/src/gtk1/gauge.cpp +++ b/src/gtk1/gauge.cpp @@ -56,7 +56,8 @@ bool wxGauge::Create( wxWindow *parent, m_parent->DoAddChild( this ); PostCreation(); - + SetBestSize(size); + Show( TRUE ); return TRUE; @@ -71,6 +72,11 @@ void wxGauge::DoSetGauge() m_rangeMax ? ((float)m_gaugePos)/m_rangeMax : 0.); } +wxSize wxGauge::DoGetBestSize() const +{ + return wxSize(100, 28); +} + void wxGauge::SetRange( int range ) { m_rangeMax = range;