> Is there a way to determine which forms input object the
> blue cursor is in?
You can test object focus at any time by interrogating the `focus'
member of the FL_OBJECT structure.
You can also track it with an object prehandler. For instance,
[...]
fl_set_object_prehandler( fd_try->input_1, handler );
fl_set_object_prehandler( fd_try->input_2, handler );
[...]
...
int handler( FL_OBJECT *obj, int event, FL_Coord mx, FL_Coord my,
int key, void *raw_event )
{
if ( event == FL_FOCUS )
fprintf( stderr, "Focus\n" );
else if ( event == FL_UNFOCUS )
fprintf( stderr, "Unfocus\n" );
}
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/