Re: XForms: XForms - problem with display of user defined objects

Steve Lamont (spl@szechuan.ucsd.edu)
Mon, 22 Dec 97 06:31:28 PST

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

> * If I set the attributes of any other xforms object within the FL_DRAW bit (eg
> set a slider value) then this other object gets drawn over my current object
> (rather than where it is supposed to be). My current work around is to
> temporarily switch on clipping when setting these attributes :-

You should not manipulate any other object while in an FL_DRAW handler
for a Free object, as it will confuse XForms's internal bookkeeping.

The best thing you can do is to register a callback for the Free
object as well as the handler. If you need to manipulate some other
object you would then return a non-zero status from the handler. This
will cause XForms to invoke a callback, from which you can execute any
XForms function without fear of mucking up XForms's innards.

You can communicate data and operation code information to the
callback via the u_vdata, u_ldata, and u_cdata hooks or through global
variables (ick!).

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://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/