Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Vertical Alignment Of Sections
Vertical Alignment Of Sections [message #328138] Thu, 15 May 2008 03:17 Go to next message
Eclipse UserFriend
Hello,

I've a Section which I tell to align vertically.

Section section = toolkit.createSection(form.getBody(), Section.TITLE_BAR
| Section.FOCUS_TITLE | Section.EXPANDED | Section.TWISTIE);
TableWrapData data = new TableWrapData(TableWrapData.FILL);
data.align = TableWrapData.FILL;
data.grabVertical = true;
section.setLayoutData(data);

When adding controls into the sections client, the sections height is
always just as high as the accumulated content of its client.
Sections covering all available vertical space wether there content
requires it or not can be seen in the plugin manifeft editor ('Rutime' or
'Extensions' Tab).

My question is, how can I make my section as high as the FormEditor
(ManagedForm), just as it can be seen in the plugin manifest editor?

Thanks!
Re: Vertical Alignment Of Sections [message #328145 is a reply to message #328138] Thu, 15 May 2008 09:43 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Jan Kohnert wrote:
> Hello,
>
> I've a Section which I tell to align vertically.
>
> Section section = toolkit.createSection(form.getBody(),
> Section.TITLE_BAR | Section.FOCUS_TITLE | Section.EXPANDED |
> Section.TWISTIE);
> TableWrapData data = new TableWrapData(TableWrapData.FILL);
> data.align = TableWrapData.FILL;
> data.grabVertical = true;
> section.setLayoutData(data);
>
> When adding controls into the sections client, the sections height is
> always just as high as the accumulated content of its client.
> Sections covering all available vertical space wether there content
> requires it or not can be seen in the plugin manifeft editor ('Rutime'
> or 'Extensions' Tab).
>
> My question is, how can I make my section as high as the FormEditor
> (ManagedForm), just as it can be seen in the plugin manifest editor?

The TableWrapLayout isn't going to stretch the section vertically, only
horizontally. To get sections that fill the page vertically you should
use a different layout, perhaps FillLayout (the simplest) or GridLayout
or FormLayout.

Hope this helps,
Eric
'
Previous Topic:programmatically open multiple fastviews
Next Topic:100% cpu usage when opening a class file
Goto Forum:
  


Current Time: Fri May 02 22:32:06 EDT 2025

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

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

Back to the top