Re: XForms: What's up with this?

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 14 Jul 98 11:16:22 PDT

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

> I was attempting to create my own object when I discovered the following
> behaviour, which may not be unexpected but I was wondering how to get
> around it. If you add text directly to a form using fl_drw_text then
> resize the form using the mouse or freeze the form and then resize an
> object on the form and unfreeze the form the text disappears. ...

The fl_drw*() functions are intended to be used from within object
handlers and not from within callbacks. Their drawing result is
ephermeral -- when an event, such as a resize, which requires the form
to be redrawn occurs, the form (meaning the Window) is cleared and all
objects are redrawn. Unless you explicitly handle the event with a
raw callback (see the Dirty Tricks section of the manual), whatever
has been drawn with any of the fl_drw*() functions will naturally
disappear.

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/