XForms: drawing a line in fl_add_free from a data file

Dick Middleton (dick@sqf.hp.com)
Thu, 21 Aug 1997 08:25:43 +0100

To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

> To subscribers of the xforms list from Raoul Beauduin <beauduin@ori.u-tokyo.ac.jp> :

> > Looks as if XForms has lost track of the object's Window for one
> > reason or another. You might try calling
> >
> > fl_winset( FL_ObjWin( free_object ) );
> >
> > to make sure you're pointing to the right place.

> 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.

Dick

--

dick@sqf.hp.com _________________________________________________ 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/