The Xt Intrinsics provides for event translations to be registered for a widget. Context for event translation is provided in the same way it is provided for event handlers. The two variables defined for translation commands are:
Set to the widget handle for the widget for which the translation is registered.
Set to the address of the XEvent that triggered the translation.
Dot-notation provides access to the fields of the event:
echo "Event type = "${TRANSLATION_EVENT.TYPE} echo "Display ="${TRANSLATION_EVENT.XANY.DISPLAY}