Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Flowlayout and childrens size
Flowlayout and childrens size [message #230357] Fri, 09 February 2007 15:08 Go to next message
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 #230365 is a reply to message #230357] Fri, 09 February 2007 15:28 Go to previous messageGo to next message
Manuel Selva is currently offline Manuel Selva
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi Daniel,

Simply call the setSize(int widht, int height) method on your child figure.

Manuel Selva


Re: Flowlayout and childrens size [message #230619 is a reply to message #230365] Wed, 14 February 2007 14:37 Go to previous messageGo to next message
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 #230638 is a reply to message #230619] Wed, 14 February 2007 16:06 Go to previous messageGo to next message
Manuel Selva is currently offline Manuel Selva
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Try to call validate on your top most figure before call getSize method.

Re: Flowlayout and childrens size [message #230686 is a reply to message #230357] Wed, 14 February 2007 22:46 Go to previous message
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
Previous Topic:zoomFit and ArrangeAll - problem when together (gmf post from 2007.02.13)
Next Topic:Draw2D events
Goto Forum:
  


Current Time: Wed Oct 22 06:43:34 GMT 2014

Powered by FUDForum. Page generated in 0.02143 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software