[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Section Borders.

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