> 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;
>       :
>       :
> Fl_Button *bt1 =3D new Fl_Button(....
> widget_array[idx++] =3D (Fl_Widget *)bt1;
>       :
>       :
>
> Then your set_widget(130, 50); would perhaps become something like...
>
> set_widget(int id, float val) {
>   widget_array[id]->value(val);
> }
>
>

i thought about that too but that would make the positioning difficult. and 
re-positioning would become really complex (if i decide to change the layout of 
the ui). i would then have to recalculate every single position.
maybe i am wrong, maybe the "group", "pack" and/or layout options (probably 
others) provided by fltk, make this solution a practible one?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to