> Dear All, > I have a window, it need to use a transparent effect png file as it's > background, but I found that use the transparent png file as background > image, it still can see the white backrgound color in the window, I try to > modify the draw() function in Fl_Window.cxx, comment the following: > > /* > if (damage() & ~FL_DAMAGE_CHILD) { // draw the entire thing > draw_box(box(),0,0,w(),h(),color()); // draw box with x/y = 0 > } > */ > > This time can see the black background color in the window, so how can I > set a transparent png file as background picture and I can see the content > below the window.
That's outside the scope of fltk to do - you need compositing at the Window Manager level tio achieve that. SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk