Lars Ruoff wrote:
> Hello,
> new to FLTK, i was wondering if and how FLTK handles dynamic positioning and 
> resizing of widgets when the container changes size.
> Is there something like layout managers?
> Didn't find anything about it in the documentation.
> I'm using FLTK 1.1
> regards,
> Scrontch.
> 

Fl_Group is the class responsible for handling resizing of widgets,
even Fl_Window derives from it. The 'resizable()' method has some info:
http://fltk.org/doc-1.3/classFl__Group.html#fd220e45e1ac817bde7d6a25fdf74e37

The test/resizebox demo program shows how this works.

There's also an article on this:
http://fltk.org/articles.php?L415+I20+T+P1+Qresize

And the newsgroups cover this quite a bit.

You can also do your own resizing if you like, just subclass
from either Fl_Group or Fl_Window and override the resize() method
to do your own logic instead.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to