Problem with Figure and ToolbarLayout [message #158112] |
Mon, 15 November 2004 13:36  |
Eclipse User |
|
|
|
Hi all,
I have a simple rectangle of a figure and I am adding horizontally seven
smaller rectangles. I used the ToobarLayout because it said something about
resizing the children to fill the space of the parent. The problem is the
smaller figures are not being expanded (the smaller figures have no content)
a,d i have set: layout.setStretchMinorAxis(true);
How do I do this or trigger this resizing of children. Thanks in advance.
Regards,
Tim.
|
|
|
Re: Problem with Figure and ToolbarLayout [message #158243 is a reply to message #158112] |
Tue, 16 November 2004 22:30  |
Eclipse User |
|
|
|
Tim,
setStretchMinorAxis(true) will stretch the children to take up additional
space vertically, not horizontally. Look at ToolbarLayoutExample in the
org.eclipse.draw2d.examples project (you'll have to get it from the CVS
repository) to see how the ToolbarLayout works.
"Tim" <tim_j_shelley@hotmail.com> wrote in message
news:cnasv1$ulh$1@eclipse.org...
> Hi all,
>
> I have a simple rectangle of a figure and I am adding horizontally seven
> smaller rectangles. I used the ToobarLayout because it said something
about
> resizing the children to fill the space of the parent. The problem is the
> smaller figures are not being expanded (the smaller figures have no
content)
> a,d i have set: layout.setStretchMinorAxis(true);
>
> How do I do this or trigger this resizing of children. Thanks in advance.
>
> Regards,
>
> Tim.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02842 seconds