Thank you for your response. Actually, what I wanted to do is make multiple groups inside a single group resizable, but I just couldn't manage to do so. Also, I tried overriding the resize() function in a class inheriting Fl_Window, but when I do so, the actual resize doesn't happen; only the coordinates are passed to my virtual function and when I resize the window, its size remains the same, only a black rectangle actually expands. This is probably the result of my not-so-great C++ knowledge. I would be very thankful if you'd give me a link to some example where I can learn to override the function.
Thanks, Ivan > On 05.07.2008, at 18:25, Ivan =C4=90or=C4=91evi=C4=87 wrote: > > > Hi, I have a Fl_Window which has a child that is set to resizable. =20 > > That child is a Fl_Group. Is it possible to set widgets in that =20 > > group to be resizable as well, so that when the group gets resized, =20= > > > 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 =20 > them inside another group or live with some restrictions. > > So, it really depends what you are planning to do. If you make a =20 > widget in the middle of your window resiable, all widgets below and =20 > above will resize horizontally, all widgets to the left and right will =20= > > resize vertically. > > You can also put two groups into one parent group, marking none of =20 > them resizable. The result will be that both groups resize within the =20= > > previous group. > > Then there is the Fl_Tile widget which lets the user resize each of =20 > its touching(!) children. > > And finally, you can override the resize() function of the Fl_Group =20 > widget and implement your own resizing behavior. > > Matthias > > ---- > http://robowerk.com/ > > _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

