cancel
Showing results for 
Search instead for 
Did you mean: 

Intercepting all user input events globally?

AleSto
Associate

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

1 REPLY 1
Martin KJELDSEN
Chief III

What do you mean by "all events globally" ?

/MArtin