> 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)
Fl_Input_.H: void textcolor(unsigned n)
Fl_Text_Display.H: void textcolor(unsigned n)
Fl_Tooltip.H: static void textcolor(unsigned c)
Fl_Value_Input.H: void textcolor(unsigned n)
Fl_Value_Output.H: void textcolor(unsigned s)
Fl_Value_Slider.H: void textcolor(unsigned s)


However, a few define it as:

Fl_File_Chooser.H: void textcolor(Fl_Color c)
Fl_Input_Choice.H: void textcolor(Fl_Color c)
Fl_Spinner.H: void textcolor(Fl_Color c)

And it is that last one that is tripping Jan up...

I think they all ought to be *either* unsigned  *or* Fl_Color, given
that the next round of gcc versions are going to be much more picky
about this sort of thing...

Anyone?
-- 
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