On 27.06.2008, at 05:28, Craig D wrote: > FLTK 2 questions: Should a Window with NO_BOX draw a background?
Um, this ias a complicated matter. NO_BOX does exactly that, it draws no box. But that does not make the widget or window transparent, it merely means that wahtever was drawn there before just "shines through" (i.e. will not be overdrawn). or top level windows on FLTK2, you can use a shaped window to create on/off transparencies by declaring individual pixles of that window as fully opaque or fully transparent. FLTK has no support for alpha values here (gradual transparency). Anther problem is, that the undelying APIs (X11, WIN32, etc.) are not too great at supporting alpha, especially on older OS's. A completely different approach would be OpenG rendering. Everything is possible her. I used this in some apps by deriving my on Button and rewritung the draw() function to use OpenGL with transparency and color grade calls. And since FLTK's OpenGL window is derived from Group, you can simply add those widgets to them like any other group widget. Matthias ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

