Function TabControl.getNextItemIndex

find next or previous tab index, based on access time

int getNextItemIndex(
  int direction
);