Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "Introduction"
Next document is "299) How can I implement "bubble help" or "tool tips" with Motif?"
298) Why doesn't the Help callback work on some widgets?
[Last modified: May 95]
Answer: If you press the help key the help callback of the widget with the
keyboard focus is called (not the one containing the mouse). You can't get
the help callback of a non-keyboard-selectable widget called. To get `context
sensitive' help on these, you have to find the mouse, associate its position
with a widget and then do the help.
The X Resource, Issue 6, has an article on implementing context help in
Motif in this manner, that is, using the mouse position to indicate the
widget for which context help is desired, as well as using resources to
specify the help. Example source code is available at
ftp://ftp.ora.com/pub/examples/xresource/issue6/helpdemo.tar.Z
The demo program lets you toggle between using the method described in
the article and XmTrackingLocate() for comparision purposes.
Contributed by: Jay Schmidgall jay@vnet.ibm.com (author of the article
mentioned above). Thanks to chen@adi.com (Franklin Chen) for correcting the
URL.
Parent document is top of "Motif FAQ (Part 9 of 9)"
Previous document is "Introduction"
Next document is "299) How can I implement "bubble help" or "tool tips" with Motif?"