]> git.saurik.com Git - wxWidgets.git/commitdiff
added IsVertical(); initialize members in ctor
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Sep 2003 12:28:25 +0000 (12:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Sep 2003 12:28:25 +0000 (12:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gauge.h

index 925cca91dd7ebca48cc2a9a3ee5a8ff8042d946b..17fbc5206e11dc2ae0745f20f9b73d6dc2b2cdc2 100644 (file)
@@ -31,7 +31,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
 class WXDLLEXPORT wxGaugeBase : public wxControl
 {
 public:
-    wxGaugeBase() { }
+    wxGaugeBase() { m_rangeMax = m_gaugePos = 0; }
     virtual ~wxGaugeBase();
 
     bool Create(wxWindow *parent,
@@ -51,8 +51,11 @@ public:
     virtual void SetValue(int pos);
     virtual int GetValue() const;
 
-    // appearance params (not implemented for most ports)
+    // simple accessors
+    bool IsVertical() const { return HasFlag(wxGA_VERTICAL); }
+
 
+    // appearance params (not implemented for most ports)
     virtual void SetShadowWidth(int w);
     virtual int GetShadowWidth() const;