Change your tab strip so its navigationMode is Disabled
Add the following code to the mouseClicked event of the TabStrip
(NOTE: this only works for up to 9 lines)
I just noticed Jordan’s code and realized a flaw in my code.
You want to open the same window, but the Tab Strip Customizer forces the name of the tab to be the window you want to open. When you make all three the same name, my code will not work and it will look like all tabs are pressed. I think the best thing thing to do is include the line number as part of the name and then postfix the number to past through. So if the window to open is LineWindow then each tab name would be: LineWindow1, LineWindow2, LineWindow3… and you would use this code:
Jordan - this might be a silly question but can I ask why you’ve used swapWindow rather than swapTo?
My situation is complicated slightly by the fact that there will be some tabs that will simply go to windows and other tabs that will be Line 1, Line 2, Line 3 etc. I believe I should be able to handle this by looking at the selectedTab property.
My only other issue is if someone switches windows without using the navigation bar (I have an option on a summary screen to double click and it jumps automatically to a detail screen).
By default, the selected tab would now not be correct.
I’m therefore looking at putting something in the internalFrameActivated script on a window to say