Section Borders. [message #334603] |
Thu, 19 February 2009 22:41 |
Irum Godil Messages: 35 Registered: July 2009 |
Member |
|
|
Hi,
I would like to create a section control with some radio buttons in it.
What I want is that when my section is expanded there is a nice border
just around the section title, extending all the way through the contents
of a section. However, I have tried various options such as
"paintBorderFor",
using ExpandableComposite etc, but there is no border created around the
entire section.
The only thing I am able to do is set the Background color for the
section, but that paints my description text as well. I do not want the
description text to have a background at all, and neither any colors b/w
the description and controls inside the section.
I also tried using Groups, but the group has spacing b/w the group and the
section; and that is not what I am looking for.
Does any one know how to just have a Section Border. I have searched the
forums and have not found any answers to my question. Will really
appreciate your help on this.
Thanks,
Irum.
|
|
|
Re: Section Borders. [message #334615 is a reply to message #334603] |
Fri, 20 February 2009 14:46 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
On 2/19/2009 5:41 PM, Irum Godil wrote:
> Hi,
>
> I would like to create a section control with some radio buttons in it.
> What I want is that when my section is expanded there is a nice border
> just around the section title, extending all the way through the
> contents of a section. However, I have tried various options such as
> "paintBorderFor",
> using ExpandableComposite etc, but there is no border created around the
> entire section.
For most Composite objects, this is a simple matter of passing the
SWT.BORDER style bit to the constructor. Unfortunately, looking at the
code for Section, it hides the Composite style (always passes SWT.NULL).
ExpandableComposite, the superclass of Section, exposes the Composite
style in a constructor, so I'm not sure why Section hides it.
You should enter a feature request in Bugzilla to make the
Section(Composite,int,int) constructor visible, at least to sublcasses
or provide some other way to specify the Composite style bits.
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.03401 seconds