I am wondering if it is possible to override the mouse events of child components with a script in the parent. In certain configurations I want to take a template containing many clickable children and turn it into a status indicator with it’s own single mouse clicked script.
Hi,
No, it doesn’t work like that. A parent container script doesn’t override it’s child component scripts.
But what you can do is place components over other components. The mouse events of the top most components will fire and the scripts of components underneath will not fire.
Sounds like what you need to do is place an invisible component such as a label with no text or a rectangle with a transparent fill paint and stroke paint on top and across your entire template and put a mouseClicked event script on it.
Cheers,
Nick