[comp.windows.x.motif] Program ? on Keyboard Focus

mgustof@hfglobe.intel.com (Mark Gustoff) (05/29/91)

I am trying to figure out how I can determine the widget 
that currently has the keyboard focus, so I can make a 
call to XtSetKeyboardFocus(Old_Focused_Widget,New_Focused_Widget)


Are there any Motif functions to determine widget with current
keyboard focus? If not is there another way to get this done?

I have an application with one display containing several widgets
on it, I then wish to place a new prompt box which contains some
labels and an associated text widget for the user to respond to.
I wish to set the keyboard focus to this text widget, as soon as
it gets popped up on the screen.


Thanks for any and all expected suggestions.


Mark Gustoff
Intel Corp.
Arizona