> > I take it that a simple cast isn't going to be enough to fix it?
>
> a cast will fix it, but do you want your users to edit the
> code generated by fluid? nah... ")
>
> >
> > In the meantime, can you post a minimal compilable example
> that manifests
> > the fault, that I can use for my testing?
>
> add a spinner in fluid, set the textcolor to any color but
> the default so that textcolor is called on it, export,
> compile. :}
I just tried this (albeit with gcc 3.4.2), with a view to looking at the
fluid output.
I take this fluid file:
-------
# data file for the Fltk User Interface Designer (fluid)
version 1.0109
header_name {.h}
code_name {.cxx}
Function {} {open
} {
Fl_Window {} {open
xywh {458 353 301 267} type Double visible
} {
Fl_Spinner {} {
label {spinner:} selected
xywh {100 46 85 38} box FLAT_BOX color 2 selection_color 5
labelcolor 14 textcolor 1
}
}
}
-------
And I get this C++ output:
-------
// generated by Fast Light User Interface Designer (fluid) version
1.0109
#include "spin-tst.h"
int main(int argc, char **argv) {
Fl_Double_Window* w;
{ Fl_Double_Window* o = new Fl_Double_Window(301, 267);
w = o;
{ Fl_Spinner* o = new Fl_Spinner(100, 46, 85, 38, "spinner:");
o->box(FL_FLAT_BOX);
o->color((Fl_Color)2);
o->selection_color((Fl_Color)5);
o->labelcolor((Fl_Color)14);
o->textcolor((Fl_Color)1);
} // Fl_Spinner* o
o->end();
} // Fl_Double_Window* o
w->show(argc, argv);
return Fl::run();
}
-------
Which seems to have explicitly cast all the int colours to the Fl_Color
type for me...
Is this not what you see?
Or is this wrong in some way?
--
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