X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..34a336adb6796a596e3d59846bd23370f936921f:/src/gtk1/gauge.cpp?ds=sidebyside diff --git a/src/gtk1/gauge.cpp b/src/gtk1/gauge.cpp index f180206c79..45f1d7b869 100644 --- a/src/gtk1/gauge.cpp +++ b/src/gtk1/gauge.cpp @@ -7,10 +7,13 @@ // 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 @@ -53,7 +56,8 @@ bool wxGauge::Create( wxWindow *parent, m_parent->DoAddChild( this ); PostCreation(); - + SetBestSize(size); + Show( TRUE ); return TRUE; @@ -68,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;