Flowlayout and childrens size [message #230357] |
Fri, 09 February 2007 15:08 |
Eclipse User |
|
|
|
Originally posted by: daniel-p.gmx.de
Hi everybody,
I have a problem with the flow-layout and here it comes ;-)
I have a container figure, which is a flow-layout assigned to. Now I want
to set the children figures size, but how can I do that, which constraints
must I use so that it is recognized by the layout?
Thanks in advance,
Dan
|
|
|
|
Re: Flowlayout and childrens size [message #230619 is a reply to message #230365] |
Wed, 14 February 2007 14:37 |
Eclipse User |
|
|
|
Originally posted by: daniel-p.gmx.de
Hi,
i guess didn't express myself correctely. The problem is, I want to
stretch the figure so, that it is as least so large as it's parent (it
must fill the parents complete client area). But I have no idea how to get
the parents actual size. For instance the getSize method returns 0 as size.
Dan
|
|
|
|
Re: Flowlayout and childrens size [message #230686 is a reply to message #230357] |
Wed, 14 February 2007 22:46 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
FlowLayout implies multiple rows/columns. If you want just a single
row/column, use ToolbarLayout. Use the setStretchMinorAxis() method to have
it automatically stretch all children.
"Daniel Pech" <daniel-p@gmx.de> wrote in message
news:op.tnhlojegoyh8ti@ws029c1.iese.fhg.de...
> Hi everybody,
>
> I have a problem with the flow-layout and here it comes ;-)
>
> I have a container figure, which is a flow-layout assigned to. Now I want
> to set the children figures size, but how can I do that, which constraints
> must I use so that it is recognized by the layout?
>
> Thanks in advance,
>
> Dan
|
|
|
Powered by
FUDForum. Page generated in 0.02296 seconds