Assign script to tab panel
In FMP10 Advanced, is it possible to assign a particular script to a single tab panel?
Situation: Tab A, Tab B, Tab C all on a layout. With Tab A showing, I would like to have a particular script launch when I click Tab B. A different script with Tab C. Yet a different when going back to Tab A.
I can overlay a tab with a button to launch the script, but that is effective only AFTER the selected tab's panel is visible. I need it to run the script upon being selected.
I'm sure this can be simulated with fake tabs and buttons, separate layouts, and OnLayoutLoad script triggers for each. But is there a way to do it directly?