Cannot set a callback for the main window:
In fl_set_object_shortcut [objects.c 1057] setting shortcut for inactive obj
Any ideas on how to set a callback on an inactive object?
-Dale
>
> # 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/
>
-- Why is there braille on drive-up ATMs? --
_________________________________________________
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/