On 13 Jun 2008, at 14:33, Jane wrote: >> > i thought about that too but that would make the positioning > difficult.
No, I'd tend to disagree - for very large arrays of widgets, I find writing a program to (re)position them at runtime is much easier and more effective than trying to get them all lined up "just so" in fluid... YMMV. > 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. Which is often easier than it sounds - especially if your widgets are all the same size, or at least have some common dimensions. > maybe i am wrong, maybe the "group", "pack" and/or layout options > (probably others) provided by fltk, make this solution a practible > one? You'll certainly want to read up on Fl_Group to see how to construct composite widgets and so forth - although it may not help with layout all that much. However - if you put a bunch of widgets inside a group, then their positions can be computed relative to their parent group, so moving the group can move all its children in one easy step. Fl_Pack might help - it does re-layout widgets automatically and dynamically. That said, I have not generally been all that happy with the results, so I tend to do the widget-layout calculations myself... -- Ian _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

