When an XRT/table is in XmList mode, callback functions registered as a XmNhelpCallback do not get called when the appropriate help buttons are push on the keyboard.
When in XmList mode, the XmText wiget that would normally have the focus is not realized. The clip child of the XRT/table widget does not have the proper translations to call the action routine that triggers the callback.
This problem can be worked around by adding the translation "<Key>osfHelp: PrimitiveHelp()" to the XRT/table's internal cell clip widget. There are two ways to do this.
1. Set up a resource to add the translation to all widgets of type XtXrtClip:
*XtXrtClip*translations: #override<Key>osfHelp: PrimitiveHelp()
2. Set up a translation table, and add the translation directly to each child widget named "clip_cell" of each XRT/table:
static char *translations = "#override<Key>osfHelp:PrimitiveHelp()";
...
parsed_trans = XtParseTranslationTable(translations);
...
clip_widget = XtNameToWidget(xrttable, "clip_cell");
XtOverrideTranslations(clip_widget, parsed_trans);
© 2021 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy