]> git.saurik.com Git - wxWidgets.git/commitdiff
added Next/PrevControlId
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 May 1999 14:51:52 +0000 (14:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 May 1999 14:51:52 +0000 (14:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/window.h

index e801a29cf59f181f79513199d339c85d3f426f59..b12fa1de050d3e65934ae7aa09158bc83efef4a8 100644 (file)
@@ -171,6 +171,12 @@ public:
         // generate a control id for the controls which were not given one by
         // user
     static int NewControlId() { return --ms_lastControlId; }
+        // get the id of the control following the one with the given
+        // (autogenerated) id
+    static int NextControlId(int id) { return id - 1; }
+        // get the id of the control preceding the one with the given
+        // (autogenerated) id
+    static int PrevControlId(int id) { return id + 1; }
 
     // moving/resizing
     // ---------------