]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/gauge.cpp
fixed dragging scrollbar in wxUniv: use wxMouseEvent::Dragging(), not Moving(), for...
[wxWidgets.git] / src / univ / gauge.cpp
index c8ebbb2289d05a94aa64ecde5cef47649d0b2833..b6cf655b041d4bc20794d9855f2f99ef5adef6d8 100644 (file)
@@ -65,12 +65,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 +104,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;