2020-03-24 02:06 AM
Hello community,
do you guys know, how to intercept events globally inside TouchGfx and retrieving the receiving GUI element?
The only way it seems to offer, is to register an UIEventListener at the HAL singleton. But this method has the disadvantage, that an event from HAL doesn't offer information about the target widget which receives the event. It is possible to use getLastChild or the focus property to resolve the widget. But this method may be inconsistent with the way events are passed down to the child widgets by the Container objects. Also it might behave wrong in case of GUI changes, like screen transitions or similar.
Thank you in advance.
Regards,
ASto
2020-03-31 07:40 AM
What do you mean by "all events globally" ?
/MArtin