Skip to main content
AleSto
Visitor II
March 24, 2020
Question

Intercepting all user input events globally?

  • March 24, 2020
  • 1 reply
  • 576 views

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

This topic has been closed for replies.

1 reply

Martin KJELDSEN
Principal III
March 31, 2020

What do you mean by "all events globally" ?

/MArtin