Horizontal separators [message #447372] |
Mon, 13 December 2004 18:15  |
Eclipse User |
|
|
|
I'm trying to design a composite layout that will consist of two
horizontally oriented sub-composites placed one above the other, with a
separator line in between.
In swing, I would us a JSeparator to render the horizontal separator,
but I can't figure out how to do this in SWT. Clearly a similar
facility is used in the menu's but that is done with MenuItems and can't
be used with composites.
Any help would be appreciated
Thanks
Chris
|
|
|
Re: Horizontal separators [message #447373 is a reply to message #447372] |
Mon, 13 December 2004 18:24  |
Eclipse User |
|
|
|
You must use a label
That following code creates a horizontal seperator:
Label seperator = new Label(shell, SWT.SEPARATOR);
Regards,
Mani
"Chris Audley" <chris.audley@beacon-cs.com> wrote in message
news:cpl7qs$clv$1@www.eclipse.org...
> I'm trying to design a composite layout that will consist of two
> horizontally oriented sub-composites placed one above the other, with a
> separator line in between.
>
> In swing, I would us a JSeparator to render the horizontal separator, but
> I can't figure out how to do this in SWT. Clearly a similar facility is
> used in the menu's but that is done with MenuItems and can't be used with
> composites.
>
> Any help would be appreciated
>
> Thanks
> Chris
|
|
|
Powered by
FUDForum. Page generated in 1.06470 seconds