This is ongoing story with "enum" vs "int" vs "typedef" vs "special class with conversion operators" types, possibility to "|" or "+" them etc.
Because unsigned int prevails for color arguments though fltk api to accept values like 0xRRGGBB00 directly, for consistency I guess for fltk-1.3 the change to "unsigned int" for "set" function and keeping Fl_Color as return type for "get" should be fine and backward compatible. R. MacArthur, Ian (SELEX GALILEO, UK) wrote: >> Anybody got views on that? > > > Well, turns out that I do. > > While the "fix" works as advertised for Jan's specific problem, I don't > think it is correct. > > The problem really seems to be the way the textcolor() method is defined > for Fl_Spinner. > > At least on fltk-1.3, many widgets define the textcolor() method, if > they define it at all, as: > > Fl_Browser_.H: void textcolor(unsigned col) > Fl_Chart.H: void textcolor(unsigned n) > Fl_Counter.H: void textcolor(unsigned s) _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

