DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1992
Version: 1.1.9


FLTK's classes have different declarations of the "textcolor" method:

  void Fl_Input_::textcolor(unsigned n);
  void Fl_Input_Choice::textcolor(Fl_Color c);

The same definitions have remained currently in 1.3 version. I think it's
wrong anyhow! 

Now, Fluid generates lines of code in that way :

  Fl_Input_Choice* o = new Fl_Input_Choice(...);
  o->color((Fl_Color)12); //OK
  o->selection_color((Fl_Color)11); //OK
  o->labelcolor((Fl_Color)13);//OK
  o->textcolor(10); // ERROR for _THIS_ class!

"VS Net" and "VS 2008" refuse to compile the last line with the followed
message:

"error C2664: 'void Fl_Input_Choice::textcolor(Fl_Color)' : cannot convert
parameter 1 from 'int' to 'Fl_Color'"


Link: http://www.fltk.org/str.php?L1992
Version: 1.1.9

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

Reply via email to