[comp.windows.x] Moving keyboard focus in widgets

gibbons@nicmad.UUCP (Tom Gibbons) (06/30/88)

I am currently using the HP widget set to create a number of
XwTextEdit widgets inside an XwForm widget.  My goal is to create
a widget for easy data entry of fields in a database.  I would 
like to be able to move the keyboard focus to different 
XwTextEdit widgets to help the user in entering data.

According to HP documentation the XwForm widget inherits its 
move_focus_to_next function from the Xtoolkit's Composite 
widget.  Unfortunately the Xt Composite widget seems to set
its move_focus_to_next function to NULL.  Thus there seems to
be no way to use the move_focus_to_next function.

Has anyone else experimented with moving the keyboard focus
within widgets?  If so, am I correct in my above assumptions?
Is the best way to move the focus then to use the XtSetKeyboadFocus
function within your widget's callbacks?

Any ideas, suggestions, or comments are appreciated...


Tom Gibbons
Systems Engineering Group
Nicolet Instrument Corporation
uucp: {ihnp4,rutgers,decvax,harvard}!uwvax!nicmad!gibbons
-- 
Tom Gibbons
Systems Engineering Group
Nicolet Instrument Corporation
uucp: {ihnp4,rutgers,decvax,harvard}!uwvax!nicmad!gibbons