Re: [Fwd: Re: fl_remove_idle_callback ? (where or how)]

Steve Lamont (
Tue, 19 Nov 96 13:41:16 PST

To subscribers of the xforms list from (Steve Lamont) :

> P.S.: Still trying to get to the pixmap background re-draw problem...

This is a disgusting hack but it seems to work:

XSetWindowAttributes attribs;
FL_FORM *form; /* Created in the Standard Manner */


fl_show_form( form, [...] );


* Set your background Pixmap

attribs.background_pixmap = your_pixmap;
XChangeWindowAttributes( fl_get_display(),
&attribs );

* XSetWindowBackgroundPixmap( fl_get_display(),
* form->window,
* your_pixmap );
* will probably also work here.

XClearWindow( fl_get_display(),
form->window );
fl_redraw_form( form );

If you're using fdesign, the other thing you have to do is to go into
your fdesign .fd file and delete the background box that fdesign
automagically creates and decrease the object count in the header for
the file by 1. Otherwise, the background box will obscure your

As I said, it's a gross, disgusting hack and it's not guaranteed to
work in the future or in all cases but it seems to for me.

To unsubscribe, send the message "unsubscribe" to or see