MacArthur, Ian (SELEX GALILEO, UK) wrote:
>>> - Try and over-ride FL_BACKGROUND2_COLOR and see if that works, or
>> Tried it allready... makes no difference :-(
>> Are you sure that it should work? Maybe I'm doing something wrong....
> 
> No, I'm not sure it would work. Indeed, I think it will *not* work,
> since FL_BACKGROUND2_COLOR is actually an enum and I don't think we can
> modify it at runtime. Can we?

http://www.fltk.org/doc-1.1/Fl.html#Fl.get_color
http://www.fltk.org/doc-1.1/Fl.html#Fl.set_color


unsigned bg2 = Fl::get_color(FL_BACKGROUND2_COLOR);
Fl::set_color(FL_BACKGROUND2_COLOR,r,g,b);

...

Fl::set_color(FL_BACKGROUND2_COLOR,bg2);

Albrecht
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to