Re: XForms: drawing a line in fl_add_free from a data file

Steve Lamont (spl@szechuan.ucsd.edu)
Thu, 21 Aug 97 05:38:41 PDT

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

> > Thank you. It worked. But an other problem occured.
> > I am using Fvwm2 as window manager. Every time i change of screen and
> > come back, the lines i have drawn in fl_add_free have all disappeared.
> > How can I make them stick to the free object?
>
> You have to redraw every time you get an expose event. You have to register
> the event handler on your free object when you initialize. This is
> discussed in 5.1 of the xforms manual.

I'm not certain this is exactly the problem. I have developed a
program which makes extensive use of the Free object and it does not
need an Expose event handler. The Free object handler registered when
the object is created should be automagically called with an FL_DRAW
XForms event by XForms whenever an Expose or other such XEvent occurs.

I suspect that what may be happening is that the FL_DRAW may not be
being serviced correctly.

Recall from the manual that *all* drawing in a Free object should be
initiated from the FL_DRAW event. If you do it otherwise, you're
likely not to draw things when they need to be refreshed.

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/