Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » extra whitespace in sectionclient
extra whitespace in sectionclient [message #436237] Fri, 02 September 2005 15:14
Andreas Pakulat is currently offline Andreas PakulatFriend
Messages: 127
Registered: July 2009
Senior Member
Hi,

I wanted to create a Section with subsections, via something like the
following code:

Section s = toolkit.createSection(form.getBody(), Section.DESCRIPTION |
Section.TWISTIE | Section.EXPANDED);
s.addExpansionListener(...) // Do a reflow of the form
s.setText("Heading");
s.setDescription("Desc");
toolkit.createCompositeSeparator(s);
Composite client = toolkit.createComposite(s);
Section sub1 = toolkit.createSection(client, ...);
sub1.addExpansionListener(...);
sub1.setText("Sub1");
sub1.setDescription("SubDesc1");
toolkit.createCompositeSeparator(sub1);
Composite c1 = toolkit.createComposite(sub1);
sub1.setClient(c1);
Section sub2 = toolkit.createSection(client, ...);
sub2.addExpansionListener(...);
sub2.setText("Sub2");
sub2.setDescription("SubDesc2");
toolkit.createCompositeSeparator(sub2);
Composite c2 = toolkit.createComposite(sub2);
sub1.setClient(c2);
s.setClient(client);

But what I get is the first subsection + description and then about 5cm
Whitespace on my monitor - which belongs to that subsection. The same
for the rest of the sections.

How do I find the cause of this, or maybe somebody already sees the
error from the above code.

Thanks,
Andreas
Previous Topic:Workbench saved state location
Next Topic:Initiating a Move View Action
Goto Forum:
  


Current Time: Sun Dec 08 03:26:08 GMT 2024

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

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

Back to the top