SWT table header and table grid colour

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

SWT table header and table grid colour

Postby Midworld » Tue May 31, 2005 9:29 am

I started to build a small GUI using SWT Designer. On a tabFolder with tabItems I placed a table with three columns. I can changed the background colour of the tabFolder with no problems, but I can neither change the background colour of the table header nor the colour of the table grid.

Please, can anyone help me?
Midworld
 
Posts: 4
Joined: Tue Jan 18, 2005 11:13 am

Re: SWT table header and table grid colour

Postby Eric Clayberg » Wed Jun 01, 2005 5:24 am

Midworld wrote:I started to build a small GUI using SWT Designer. On a tabFolder with tabItems I placed a table with three columns. I can changed the background colour of the tabFolder with no problems, but I can neither change the background colour of the table header nor the colour of the table grid.

SWT does not offer properties to set the color of a table header or grid.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby Midworld » Wed Jun 01, 2005 6:53 am

Thanks a lot for the response, but could you tell me why SWT is not offering that functionality? :(
Midworld
 
Posts: 4
Joined: Tue Jan 18, 2005 11:13 am

Postby Eric Clayberg » Wed Jun 01, 2005 8:04 am

Midworld wrote:Thanks a lot for the response, but could you tell me why SWT is not offering that functionality?

Presumably because it isn't offered by the underlying OS. SWT uses native widgets for most widgets (when it can), and is constrained by the capabilities of the underlying OS implementation.

If the underlying OS does expose that capability and SWT does not, it probably means that no one asked for that feature yet (in which case you should open a feature request on the Eclipse Bugzilla system).

For a more detailed answer, you should address SWT runtime and behavioral questions to the Eclipse SWT newsgroup.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest