Yes, I have added 2 OverFlow Commands for a simple case to select / expose tabs that are not currently visible.
tb.addMaterialCommandToOverflowMenu("Expose Time Sheet Tab", FontImage.MATERIAL_ASSIGNMENT_RETURNED, 3, e -> {
Display.getInstance().callSerially(new Runnable() {
public void run() {
A3RepairOrderTabsForm.setSelectedIndex(7, true);
a3RepairOrderForm.a3ManageTimeSheets.ManageTimeSheetsTab.setSelectedIndex(0, true);
}
});
});
tb.addMaterialCommandToOverflowMenu("Expose Labor Tab", FontImage.MATERIAL_ASSIGNMENT_RETURNED, 3, e -> {
Display.getInstance().callSerially(new Runnable() {
public void run() {
A3RepairOrderTabsForm.setSelectedIndex(3, true);
a3RepairOrderForm.A3LaborTab.setSelectedIndex(0, true);
}
});
});
See attached image AddTabsGridBool_8.JPG showing the Labor Tab is selected and I confirm the Labor Task Tab is highlighted and correct.
Next I select Expose Time Sheet Tab, See AddTabsGridBool_10.JPG
Note The TOP Layer TABS have not scrolled to the selected index.
When I manually scroll the Tabs, I see that the selected Index is correctly highlighted.
So it is a matter of why the TABS do not scroll. See AddTabsGridBool_11.JPG
Thoughts?