Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Details page auto-reflow
Details page auto-reflow [message #839547] Sun, 08 April 2012 22:29 Go to next message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 417
Registered: September 2009
Senior Member
Hi,
I'm using a UI Forms Master/Details setup.
In one of the details I have bunch of Section(s) stacked vertically.
They are mostly not expanded (to be precise: by default there's only one Expanded section).
I have two problems:

1) when I enter the details page the Expanded section is not painted correctly (it is very small and it does not display any content. In order to make it display I must manually add a Section.setExpanded(false); Section.setExpanded(true); This works even if I cycle unexpand/expand to the Section that's the complete details page.
This doesn't seem the right way to obtain the desired result. What am I missing?

2) The resulting Detail Section is only as large as needed by the enclosed Section(s), while I would like it to grab all available space.
I have been unable to find where to put this info (I am using GridLayout and I put the grabExcessOrizontalSpace to true everywhere).
Any hint would be welcome.

TiA
Mauro
Re: Details page auto-reflow [message #845812 is a reply to message #839547] Sun, 15 April 2012 12:43 Go to previous message
Wim Jongman is currently offline Wim Jongman
Messages: 418
Registered: July 2009
Senior Member
Hi Mauro,

1) add an expand listener and reflow the form when it hits.
2) It is definitely a layout problem. Try to use windowbuilder to get a
wysiwyg editor

For more form details please check this article:

http://www.eclipse.org/articles/Article-Forms/article.html

Regards,

Wim

> 1) when I enter the details page the Expanded section is not painted
correctly (it is very small and it does not display any content. In order to
make it display I must manually add a Section.setExpanded(false);
Section.setExpanded(true); This works even if I cycle unexpand/expand to the
Section that's the complete details page.
> This doesn't seem the right way to obtain the desired result. What am I
missin


>
> 2) The resulting Detail Section is only as large as needed by the enclosed
Section(s), while I would like it to grab all available space.
> I have been unable to find where to put this info (I am using GridLayout
and I put the grabExcessOrizontalSpace to true everywhere).
> Any hint would be welcome.
>
> TiA
> Mauro
Previous Topic:How to move standard view to a different view category
Next Topic:Tooltip for menus on toolbar are not globalized
Goto Forum:
  


Current Time: Sat Sep 20 22:09:11 GMT 2014

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

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