diff --git a/include/wx/window.h b/include/wx/window.h index e801a29cf5..b12fa1de05 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -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 // ---------------