|
|
Re: FlowLayout doesn't calculate its size automatically? [message #188628 is a reply to message #188606] |
Thu, 21 July 2005 17:23 |
Eclipse User |
|
|
|
Originally posted by: zhlmmc.hotmail.com
Sorry, I can only access this newsgroup through web...
I mean that my ContainerFigure will calculate its size automatically and
paint itself correctly when I add a new child to it.(The layout of my
ContainerFigure is FlowLayout)
But if I call "FlowLayout.setHorizontal(false)", the ContainerFigure will
not paint itself correctly when I add a new child to it, in another word,
my ContainerFigure's size will remains the same as before.I have to drag
the bounds so that I can see the newly added item.
|
|
|
Re: FlowLayout doesn't calculate its size automatically? [message #188834 is a reply to message #188628] |
Fri, 22 July 2005 19:00 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
What is the container figure's parent's layout? It's that layout's job to
resize the container figure. The container figure's flowlayout places the
children of the container figure in whatever space is available. It does
not resize the container figure. It should, however, calculate the proper
preferred size for the container (when asked for by the container figure's
parent's layout manager).
"zhlmmc" <zhlmmc@hotmail.com> wrote in message
news:d2f22938f39c63c5d5871d9fb2614d18$1@www.eclipse.org...
> Sorry, I can only access this newsgroup through web...
> I mean that my ContainerFigure will calculate its size automatically and
> paint itself correctly when I add a new child to it.(The layout of my
> ContainerFigure is FlowLayout)
> But if I call "FlowLayout.setHorizontal(false)", the ContainerFigure will
> not paint itself correctly when I add a new child to it, in another word,
> my ContainerFigure's size will remains the same as before.I have to drag
> the bounds so that I can see the newly added item.
>
>
|
|
|
Re: FlowLayout doesn't calculate its size automatically? [message #188905 is a reply to message #188834] |
Sat, 23 July 2005 02:57 |
Eclipse User |
|
|
|
Originally posted by: zhlmmc.hotmail.com
The layout of container's parent is FreeFormLayout...
So, it cann't automatically resize the container -,-
Unfortunately, I can only use FreeFormLayout for the container's parent.
Is it possible to make the container resizeable automatically?
What should I do?
Thanks.
|
|
|
Re: FlowLayout doesn't calculate its size automatically? [message #189042 is a reply to message #188905] |
Mon, 25 July 2005 15:38 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
Yes. Use -1 as the width or height constraint for whatever dimension needs
to be resized automatically. In the logic example, if you set the flow
container's height to be -1, you'll see this happen.
"zhlmmc" <zhlmmc@hotmail.com> wrote in message
news:e25a4df9d66e324463d5525c84eb3074$1@www.eclipse.org...
>
> The layout of container's parent is FreeFormLayout...
> So, it cann't automatically resize the container -,-
> Unfortunately, I can only use FreeFormLayout for the container's parent.
> Is it possible to make the container resizeable automatically?
> What should I do?
>
> Thanks.
>
|
|
|
Powered by
FUDForum. Page generated in 0.03829 seconds