> >
> > I didn't even realise it was possible to set it to an 
> "enumerated" color
> > like FL_BACKGROUND2_COLOR.
> >
> >
> 
> just select upmost left (FL_FOREGROUND_COLOR) upmost right 
> (FL_BACKGROUND2_COLOR), the blue field below 
> (FL_SELECTION_COLOR). and one of the grey shades is 
> FL_BACKGROUND_COLOR :)

Well, there you go - I never knew that happened.
And the explicit cast is indeed missing.

Fluid bug, I'd say... Also present in 1.3.x fluid.

In fltk-1.3.x, that's around line 2129 of the file F;_Widget_Type.cxx,
where we have:

  if (color_name) {
    write_c("%s%s->%s(%s);\n", indent(), var, field, color_name);
  } else {
    write_c("%s%s->%s((Fl_Color)%d);\n", indent(), var, field, color);
  }

Where the write_c line possibly ought to be:

    write_c("%s%s->%s((Fl_Color)%s);\n", indent(), var, field,
color_name);


Anybody got views on that?
-- 
Ian


SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to