Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problem with Figure and ToolbarLayout
Problem with Figure and ToolbarLayout [message #158112] Mon, 15 November 2004 18:36 Go to next message
Tim Shelley is currently offline Tim ShelleyFriend
Messages: 60
Registered: July 2009
Member
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] Wed, 17 November 2004 03:30 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
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: Mon Sep 23 17:25:15 GMT 2024

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

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

Back to the top