Hi Ian Thanks once again for all the help. This article was excellent. I read through a few hundred pages of documentation and didn't understand the layout system. This article really should be part of the main documentation.
This system looks quite different from what I have seem elsewhere. It's hard to explain using other projects/languages terminology. It looks like I could pretty much layout my whole gui out with everything defined in absolute pixels and then encapsulate various widgets in a resizable group or the opposite, a non-resizable group. This seems so strange but I guess if you think about it, you know exactly where things will be before resizing. -Patrick On 11/06/2012 04:25 PM, Ian MacArthur wrote: > In case it helps, there is a howto... > > http://www.fltk.org/articles.php?L415 > > > Might help. If not, well, ask again...! > > > On 6 Nov 2012, at 15:03, Patrick wrote: > > >> Hi Everyone >> >> Callbacks and creating instances of widgets is really straightforward in >> FLTK but I am finding the layout management quite confusing. >> >> I have some gtk, tk and some html/css background. >> >> With css there is absolute positioning and relative positioning(and >> others likely). It's my understanding that with css it's a bad design >> practice to set everything by absolute position. With gtk there is hbox >> and vbox(from what I remember) that will position widgets within the >> container implicitly based on whether it is a vertical box or horizontal >> one. >> >> I am playing with Fl_Group right now. I thought that widgets inside >> groups might behave similar to css relative position but it appears it >> is still absolute. >> >> Is there a list of best design practices with fltk ? Is it best to think >> it terms of absolute positioning for everything ? If this is the case, >> is Fl_Group more of a declared region on the screen as opposed to a >> container that can move widgets around like a div would be in html ? >> >> Thanks for reading-Patrick >> > > _______________________________________________ > fltk mailing list > fltk@easysw.com > http://lists.easysw.com/mailman/listinfo/fltk > > _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk