]> git.saurik.com Git - wxWidgets.git/commitdiff
document GetValue() behaviour when called from an event handler processing change...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 19 Jun 2008 15:46:43 +0000 (15:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 19 Jun 2008 15:46:43 +0000 (15:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/spinctrl.h

index 06d29a3647992f729b4ea4f26a676e2178ea4115..af58fbcbcb1cfc70f748d9f2c9737b1a596208fa 100644 (file)
@@ -94,6 +94,12 @@ public:
 
     /**
         Gets the value of the spin control.
+
+        Notice that if you use this method from a handler processing a change
+        of the control value, it may return the old value, not the new one
+        (because the event handler can veto the change and this prevent the
+        value from changing at all). Use wxSpinEvent::GetValue() to retrieve
+        the new value in this case.
     */
     int GetValue() const;