Hi, I'm trying to develop a test program with fltk 2.0 to demonstrate Composite extension.
First, I tried something naive: subclass Window to use a dedicated visual, but this don't work for the "hello" program: I'm getting BadMatch on X_CopyArea operation, and the window if fully transparent. Looking at the source code showed that the visual parameter use to draw on the window is global (fltk::xvisual). So I tried to be brutal and apply the visual to the whole FLTK library. It works better but I'm not happy with the result: my "hello" window became translucent (see screenshot), and I don't want any window/widget to be translucent by default. Is there someone who could explain me how to correct this ? In the fltk source code, I see some usage of the Xrender extension, but I didn't find how to use it to manage transparency level for top level window / widget. According to: http://www.fltk.org/doc-2.0/html/example4.html "Fltk colors are 32-bit integers, with 8 bits of red, 8 bits of green, and 8 bits of blue, and then 8 bits that may be used as a transparency value or an index number, depending on context. It is safe to make these last bits be 00 or 0xff." What is the default transparency value used for window / widget ? Regards. -- Yann Droneaud <[EMAIL PROTECTED]> +33 (0) 1 40 41 17 59 Ingénieur conseil Mandriva
_______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

