[..]
>
> Rather than using fluid to build your UI, maybe you can build it
> programmatically, and also keep an array of pointers to all your
> widgets, like...
>
> Fl_Widget *widget_array[200];
> int idx =3D 0;
> :
> :
[..]
>
> Then your set_widget(130, 50); would perhaps become something like...
>
> set_widget(int id, float val) {
> widget_array[id]->value(val);
> }
But Fl_Widget doesn't have a value() method. Keeping an array of
Fl_Valuator* might work, but might get messy because it's value()
is non-virtual; you'd have to research whether or not the base class
value() does what you want in all cases. Unfortunately fltk
doesn't do polymorphism very well.
HTH,
Stan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk