]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk1/gauge.h
Always use XPMs in this sample
[wxWidgets.git] / include / wx / gtk1 / gauge.h
index f014fcf379cc7d90bb5eaa9cf173028663688c87..ced1476387a70e877163e236a5268eb97d82bf8a 100644 (file)
@@ -75,6 +75,8 @@ public:
     int GetRange() const;
     int GetValue() const;
 
+    bool IsVertical() const { return HasFlag(wxGA_VERTICAL); }
+    
     // implementation
     // -------------
 
@@ -85,8 +87,8 @@ public:
         m_gaugePos;
 
     // obsolete functions, don't use
-#ifdef WXWIN_COMPATIBILITY_2_2
-    bool GetProgressBar() const { return TRUE; }
+#if WXWIN_COMPATIBILITY_2_2
+    bool GetProgressBar() const { return true; }
 #endif // WXWIN_COMPATIBILITY_2_2
 
 protected: