Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Gradients in CTabFolder
Gradients in CTabFolder [message #448026] Sun, 26 December 2004 22:49 Go to next message
Axel Schlueter is currently offline Axel SchlueterFriend
Messages: 41
Registered: July 2009
Member
Hi,

I'd like to get the same kind of gradients
in the selected tab of a CTabFolder like the
ones used in the Eclipse editor tabs. When
using CTabFolder#setSelectionBackground() with
vertical==false, the gradient spreads about
the whole CTabFolder width, but I'd like to
get a gradient just about the width of the
currently selected tab. Any ideas ?

TIA,
Axel
Re: Gradients in CTabFolder [message #448091 is a reply to message #448026] Fri, 31 December 2004 03:56 Go to previous message
Rein Nehe is currently offline Rein NeheFriend
Messages: 1
Registered: July 2009
Junior Member
One way to do it is: use ViewForm; put your toolbar as a "top right"
component, and put CLabel (with gradient) as a "top left" component.
Hope that helps, Rein




Axel Schlueter wrote:

> Hi,

> I'd like to get the same kind of gradients
> in the selected tab of a CTabFolder like the
> ones used in the Eclipse editor tabs. When
> using CTabFolder#setSelectionBackground() with
> vertical==false, the gradient spreads about
> the whole CTabFolder width, but I'd like to
> get a gradient just about the width of the
> currently selected tab. Any ideas ?

> TIA,
> Axel
Previous Topic:How to do Dialog return a String?
Next Topic:Extending SWT Components
Goto Forum:
  


Current Time: Thu Oct 22 01:16:42 GMT 2020

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

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

Back to the top