Re: XForms: redrawing and freezing

Paul Barton-Davis (pbd@Op.Net)
Tue, 21 Jul 1998 13:28:52 -0300

# To subscribers of the xforms list from Paul Barton-Davis <pbd@Op.Net> :

>Consider, for example, an instance where during the freeze period you
>hide one object and add another in its place. The library would have
>to clear the area where the old object was and draw the new one.
>Overlapping objects would be complicated -- adding a box around
>another object (admittedly an unlikely case) would be messy -- you'd
>have to analyze the geometry and positions of every object to make
>sure that you weren't unintentionally overwriting something.

I must be missing something. Surely you just mark a bit in the object
saying "I was touched while the form was frozen". Then, in some
equivalent of fl_redraw_form(), as you iterate over the objects to be
drawn, you only redraw those that have the bit set. If you hid one
object, its bit would be set, and during the "redraw", it would
vanish. If you show another, its bit would be set as well. If you
added a box around something else that overlapped with some objects,
surely the box is automatically (given the LIFO nature of a form
definition) "on top" of whatever it overlaps, and thus redrawing it
alone is sufficient, regardless of the overlaps.

What do I not get ? :)

--p
_________________________________________________
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/