]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/gauge.cpp
Make status bar grip move to the left in RTL.
[wxWidgets.git] / src / univ / gauge.cpp
index 3b8f7c8ed6fa4309f942fe17b13f2a6e11eccc90..5043825c2278dbd5f9c5c177ae7d06443ff011ab 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
 // headers
 // ----------------------------------------------------------------------------
 
-#ifdef __GNUG__
-    #pragma implementation "gaugeuniv.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-#endif //WX_PRECOMP
+#if wxUSE_GAUGE
 
 #include "wx/gauge.h"
 
 
 #include "wx/gauge.h"
 
-#if wxUSE_GAUGE
+#ifndef WX_PRECOMP
+#endif //WX_PRECOMP
 
 #include "wx/univ/renderer.h"
 
 
 #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) )
     {
     if ( !wxGaugeBase::Create(parent, id, range, pos, size, style,
                               validator, name) )
     {
-        return FALSE;
+        return false;
     }
 
     SetBestSize(size);
 
     }
 
     SetBestSize(size);
 
-    return TRUE;
+    return true;
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------
@@ -104,12 +100,12 @@ wxSize wxGauge::DoGetBestClientSize() const
     if ( IsVertical() )
     {
         size.x = (3*size.y) / 2 + 2;
     if ( IsVertical() )
     {
         size.x = (3*size.y) / 2 + 2;
-        size.y = -1;
+        size.y = wxDefaultCoord;
     }
     else
     {
         size.y = (3*size.x) / 2 + 2;
     }
     else
     {
         size.y = (3*size.x) / 2 + 2;
-        size.x = -1;
+        size.x = wxDefaultCoord;
     }
 
     return size;
     }
 
     return size;