Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Horizontal separators
Horizontal separators [message #447372] Mon, 13 December 2004 23:15 Go to next message
Chris Audley is currently offline Chris AudleyFriend
Messages: 41
Registered: July 2009
Member
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 23:24 Go to previous message
Mani Ghamari is currently offline Mani GhamariFriend
Messages: 33
Registered: July 2009
Member
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
Previous Topic:Newsgroup for general Eclipse problems?
Next Topic:transparent Canvas on top of a Composite
Goto Forum:
  


Current Time: Wed Apr 24 14:33:54 GMT 2024

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

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

Back to the top