Re: XForms: Binding keystrokes to main window

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 30 Jun 98 11:38:44 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I have thought about using:
> fl_set_object_callback('main',printscreen, 0);
> &
> fl_set_object_shortcut('main',"^p", 0);
>
> ...but I do not want the callback executed everytime they
> click on the screen!

Unless the object is one which normally responds to a mouse click (for
instance, a button), then the callback wouldn't get called.

If it does, then you would have to do some sort of filtering within
the callback -- for instance, by checking the mouse button state -- if
it's pressed, do nothing, otherwise, dump the screen.

That's my first guess at the problem, anyhow.

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/