On 11 Dec 2012, at 14:00, Leandro Fanzone wrote: > Hello, I am using version 1.3r7613, compiling for Win32, and I want to set > the color of a button to full blue, but if I use FL_BLUE or an RGB value like > 0xFF000000, what I see is some kind of violet, closer to, say, RGB #BBBBEE, > like the colors used in this very forum, for example. Is there a way to > specify absolute colors in any other way I am not aware of?
That sounds odd - it ought to Just Work, certainly seems to for me. Though note that 0xFF000000 would be RED not BLUE in the fltk context (the bytes are coded as RRGGBBII where II is the palette index value, if used...) The docs cover colour settings here: http://www.fltk.org/doc-1.3/common.html#common_colors Does that help? Anyway, here's a test program; for me this generates solid blue buttons for all four test cases - what does it do on your setup? ---------------- // // fltk-config --compile test_colours.cxx // #include <FL/Fl.H> #include <FL/Fl_Double_Window.H> #include <FL/Fl_Button.H> static Fl_Double_Window *main_win=(Fl_Double_Window *)0; static Fl_Button *test_button=(Fl_Button *)0; static Fl_Button *quit_bt=(Fl_Button *)0; static void cb_quit_bt(Fl_Button*, void*) { main_win->hide(); } int main(int argc, char **argv) { main_win = new Fl_Double_Window(479, 344, "Test Colours"); main_win->begin(); test_button = new Fl_Button(25, 25, 120, 70, "Test 1"); test_button->color((Fl_Color)4); test_button->labelcolor(FL_WHITE); test_button = new Fl_Button(155, 25, 120, 70, "Test 2"); test_button->color(FL_BLUE); test_button->labelcolor(FL_YELLOW); test_button = new Fl_Button(285, 25, 120, 70, "Test 3"); test_button->color(fl_rgb_color(0, 0, 255)); test_button->labelcolor(FL_CYAN); test_button = new Fl_Button(25, 105, 120, 70, "Test 4"); test_button->color(0x0000FF00); test_button->labelcolor(FL_MAGENTA); quit_bt = new Fl_Button(345, 260, 120, 70, "Quit"); quit_bt->callback((Fl_Callback*)cb_quit_bt); main_win->end(); main_win->show(argc, argv); return Fl::run(); } /* end fo file */ ---------------- _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

