Re: XForms: Redrawing free objects

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 17 Oct 97 09:06:01 PDT

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

> 1) Can I add a pre- or post handler to an object that is normally
> non-interactive, like a box?

Yes.

> 2) My app has a free object that I display other objects on, by drawing
> circles, lines, etc. and by displaying pixmaps. When the free object
> needs to be redrawn, i.e. when it receives the FL_DRAW event, I know to
> redraw the free object box and then redraw all the circles, lines, etc.
> How do I "redraw" the pixmaps?

How did you draw them in the first place?

The technique I use is to create an offscreen Pixmap and then use
XCopyArea() to blat the Pixmap to the form.

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/