Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Scrolling JFace viewers on a white background (Linux/GTK)
Scrolling JFace viewers on a white background (Linux/GTK) [message #538018] Fri, 04 June 2010 14:12 Go to next message
Peter Saunders is currently offline Peter SaundersFriend
Messages: 30
Registered: July 2009
Member
I need to place a scrolling TableViewer on a Composite which has a white background. On Linux/GTK, the small gaps between the table scroll bars and the table itself do not inherit the background color of the TableViewer or of the Composite. How can I set the color of these gaps?

I have tried composite.setBackgroundMode(SWT.INHERIT_FORCE) which helps with scrolling SWT Text boxes, but also forces the text background to be white. This technique does not work for JFace TableViewers.

I am using Helios 3.6RC3.

Thanks

Peter Saunders
Re: Scrolling JFace viewers on a white background (Linux/GTK) [message #538393 is a reply to message #538018] Mon, 07 June 2010 14:22 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
I believe that thin line of pixels belongs to the scrollbar, so there isn't
a way to change its colour since SWT's ScrollBar class doesn't have
setBackground() api. (Even if ScrollBar did have setBackground(), it may
not be a desirable thing to use here if it also changed the background
colour of the scrollbar's gutter).

Grant


"Peter Saunders" <pts001@ymail.com> wrote in message
news:hub1kb$8ln$1@build.eclipse.org...
> I need to place a scrolling TableViewer on a Composite which has a white
background. On Linux/GTK, the small gaps between the table scroll bars and
the table itself do not inherit the background color of the TableViewer or
of the Composite. How can I set the color of these gaps?
>
> I have tried composite.setBackgroundMode(SWT.INHERIT_FORCE) which helps
with scrolling SWT Text boxes, but also forces the text background to be
white. This technique does not work for JFace TableViewers.
>
> I am using Helios 3.6RC3.
>
> Thanks
>
> Peter Saunders
Re: Scrolling JFace viewers on a white background (Linux/GTK) [message #539374 is a reply to message #538393] Thu, 10 June 2010 15:01 Go to previous messageGo to next message
Peter Saunders is currently offline Peter SaundersFriend
Messages: 30
Registered: July 2009
Member
Grant Gayed wrote on Mon, 07 June 2010 10:22:

> I believe that thin line of pixels belongs to the scrollbar, so there isn't
> a way to change its colour since SWT's ScrollBar class doesn't have
> setBackground() api. (Even if ScrollBar did have setBackground(), it may
> not be a desirable thing to use here if it also changed the background
> colour of the scrollbar's gutter).

Thanks for the explanation. I'm noticing this limitation in various plugins on Linux/GTK now. It seems developers just live with it...

Peter Saunders
Re: Scrolling JFace viewers on a white background (Linux/GTK) [message #1778634 is a reply to message #539374] Tue, 19 December 2017 07:32 Go to previous message
Rinky gupta is currently offline Rinky guptaFriend
Messages: 1
Registered: December 2017
Junior Member
Any way to fill scroll bar white color ?
I am using 4.2 SWT linux jar and facing same issue.
Previous Topic:UI freezes when running a long operation in a jface wizard
Next Topic:Jface accelerator key not working on macOS when focus is on StyledText widget
Goto Forum:
  


Current Time: Thu Apr 25 01:16:30 GMT 2024

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

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

Back to the top