Running a script in a tabbed layout
I have a layout with two tabs at the top.
I'd like to run a script whenever either of the tabs at the top are clicked. The problem is I can't find a trigger that will detect when that occurs. Perhaps there's something I'm not understanding.
I tried overlaying a button (rectangle with a trigger) on top of the tabs, but when clicked the tab changes the layout and the button trigger is ignored. If I drag the button a little off the tab, and click that part only not within the tab, the trigger works fine.
Perhaps there's a subtle way to detect when a new tab has been clicked?