Set background color for scrollbar

I use ScrolledComposite and I can't find how to change background of ScrollBars. Is it possible to change background of ScrollBars?


Short answer: No.

Long answer: No, because SWT is built on top of OS native UI. You can't change the native looks and feels.

Although...: You can "hack" it by painting on top of the scrollbar control. In my opinion, that's a lot of hussle, and it's not worth it.

Other solutions: Use JavaFX. Almost fully customizable.

Similar questions: Here, here, also here

No, setting the background color of scroll bars is not possible in SWT.

SWT is designed to use the native GUI library of the respective platform and it is this library that defines the look and feel of the widgets, including the colors of scroll bars.

Need Your Help

Class structure confirmation

c# c#-4.0

I have this class file call SMSHelper.cs First I just wanted to know is my written structure is Correct or Wrong?(My class file name is also SMSHelper.cs & my first class also SMSHelper here yo...