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

[STR New]

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


to reproduce: add an Fl_Spinner and change the textcolor to an defined
color (eg FL_BACKGROUND2_COLOR), compile generated code and you get an
error like:

error: invalid conversion from `int' to `Fl_Color'

generated code:

{ device_id = new Fl_Spinner(63, 86, 58, 25);
  device_id->labelcolor(FL_BACKGROUND2_COLOR); // missing cast to Fl_Color
  ....
} // Fl_Spinner* device_id

so far i only got this error for Spinners (i use FL_BACKGROUND2_COLOR and
FL_SELECTION_COLOR and the others for all widgets in my app).
when you use a color from the color palette that is not one of FL_*_COLOR,
fluid will genrate code with a cast:

{ Fl_Spinner* o = new Fl_Spinner(100, 46, 85, 38, "spinner:");
  o->labelcolor((Fl_Color)14);
  ....
} // Fl_Spinner* o


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

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

Reply via email to