select option menu without using mouse

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

4 posts / 0 new
Last post
select option menu without using mouse

I have a problem of setting the selection on the Option Menu without using mouse.
I created an Option Menu, normally I can use the mouse event to chang the selection, but if I want to change the selection internally, does Motif allow me to do that?
Thanks!

ICS_support

Set XmNmenuHistory. I assume you mean "programmatically" rather than "using the keyboard instead of the mouse".

Anonymous

Thank you very much! dbl
I used XmNmenuHistory, it works perfectly.
I try to use XmProcessTraversal but didn`t work, do you know why?
Yan

ICS_support

Because changing focus requires a widget, which may already have the focus; it is the display that needs changing.