X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/442b35b53bf95f5c6c003ea9ddbefd17adbc2a00..ae3ac32d72f28fd0d8340660bbe44e1b5f605395:/src/univ/gauge.cpp diff --git a/src/univ/gauge.cpp b/src/univ/gauge.cpp index 16e38f7e69..c887c2cf17 100644 --- a/src/univ/gauge.cpp +++ b/src/univ/gauge.cpp @@ -6,7 +6,7 @@ // Created: 20.02.01 // RCS-ID: $Id$ // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) -// License: wxWindows license +// License: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "gaugeuniv.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -28,12 +24,12 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP -#endif //WX_PRECOMP +#if wxUSE_GAUGE #include "wx/gauge.h" -#if wxUSE_GAUGE +#ifndef WX_PRECOMP +#endif //WX_PRECOMP #include "wx/univ/renderer.h" @@ -65,12 +61,12 @@ bool wxGauge::Create(wxWindow *parent, if ( !wxGaugeBase::Create(parent, id, range, pos, size, style, validator, name) ) { - return FALSE; + return false; } - SetBestSize(size); + SetInitialSize(size); - return TRUE; + return true; } // ---------------------------------------------------------------------------- @@ -104,12 +100,12 @@ wxSize wxGauge::DoGetBestClientSize() const if ( IsVertical() ) { size.x = (3*size.y) / 2 + 2; - size.y = -1; + size.y = wxDefaultCoord; } else { size.y = (3*size.x) / 2 + 2; - size.x = -1; + size.x = wxDefaultCoord; } return size;