Setting Window Focus

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

Questions about motif? Contact us

2 posts / 0 new
Last post
Setting Window Focus

Submitted by Anonymous on Thu, 01/11/2001 - 19:38. Developers
I want to set focus to a particular window. There is a motif call to set keyboard focus but that doesn`t cause the window border of the menu to become hilighted. Also the menu i want to set focus to doesn`t have a text field. Any ideas?

ICS_support

Are you talking about a tear-off menu? Generally, the menu would not be posted.

In any case, XmProcessTraversal() is the best call to use.

Note that changing the focus for the user is an often-questionable act; you should really be sure that this change makes sense in your user interface.