Skip to main content



      Home
Home » Eclipse Projects » GEF » Problem with Figure and ToolbarLayout
Problem with Figure and ToolbarLayout [message #158112] Mon, 15 November 2004 13:36 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
>
>
Previous Topic:Always put focus back on SelectionToolEntry after new connection
Next Topic:Strategy to handle empty editor inputs
Goto Forum:
  


Current Time: Sat May 10 16:35:39 EDT 2025

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

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

Back to the top