Andy Piper <andy(a)xemacs.org> writes:
XtSetKeyboardFocus is only used by Motif, not by XEmacs.
Then, I don't see how your widget can keep the keyboard focus, even if
you click outside it. But what are those widgets anyway ? Lucid ? How are they
implemented ?
>release it.
Er, how do I do this?
I beleive that if you call XtSetKeyboardFocus with a widget of `None',
the keyboard focus will be switched back to the toplevel of the tree.
>Also, if you have to track when the pointer leaves a subwidget
in
>order to restore the focus, you'll have to select the LeaveNotify events.
How do I do this? Are these generated for the parent.
If you want to receive special events for a particular window, you
normally call XSelectInput to specify the events you're interested in, and
treat them in the event loop.
--
/ / _ _ Didier Verna
http://www.inf.enst.fr/~verna/
- / / - / / /_/ / ENST, INFRES C201.1 mailto:vernaļ¼ inf.enst.fr
/_/ / /_/ / /__ / 46 rue Barrault Tel. +33 (1) 45 81 73 46
75013 Paris, France Fax. +33 (1) 45 81 31 19