Jane wrote:
> i tried to put ...
>
> Fl::set_color(FL_BACKGROUND_COLOR, 192, 192, 192);
> Fl::set_color(FL_BACKGROUND2_COLOR, 255, 255, 255);
> Fl::set_color(FL_FOREGROUND_COLOR, 0, 0, 0);
> Fl::set_color(FL_SELECTION_COLOR, 191, 218, 255);
> Fl::redraw();
>
> ... into the constructor of my main window but without any
> effect. any ideas?
That should work and the redraw() should be unnecessary
because there's nothing to redraw yet at that point in
the app (before windows or widgets are constructed).
I would advise calling Fl::reload_scheme() after
changing the colors.
The other thing to watch out for is Fl::args()
and/or win.show(argc,argv) which plays with the
color map (making things 'tan' on XP, etc) because
it's looking for command line args to init the color map
or something.
If you DONT call Fl::args() or instead of
win.show(argc,argv) use just win.show(), that will
prevent the alternate colormap stuff I think.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk