On 05.07.2008, at 18:25, Ivan Đorđević wrote:

> Hi, I have a Fl_Window which has a child that is set to resizable.  
> That child is a Fl_Group. Is it possible to set widgets in that  
> group to be resizable as well, so that when the group gets resized,  
> the child widgets get resized to fit the group size as well?

no, yes, depends.

No, you can't mark two widgets inside a group as being resizable.

Yes, you can have multiple groups resizable, but you have to group  
them inside another group or live with some restrictions.

So, it really depends what you are planning to do. If you make a  
widget in the middle of your window resiable, all widgets below and  
above will resize horizontally, all widgets to the left and right will  
resize vertically.

You can also put two groups into one parent group, marking none of  
them resizable. The result will be that both groups resize within the  
previous group.

Then there is the Fl_Tile widget which lets the user resize each of  
its touching(!) children.

And finally, you can override the resize() function of the Fl_Group  
widget and implement your own resizing behavior.

Matthias

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to