I have a TWebScrollBox with lots of elements in it, but I don't like the colors of the default scrollbar in it.
This is my scrollbar on the TWebScrollBox:
You can see the scrollbar consists of two different parts:
- A white-ish background color
- And a gray foreground scroll and arrows.
I want to change the color for both of the above two parts.
I looked for a scrollbar color property, but couldn't find one.
Is it somehow possible to change the colors on the scrollbar without using a CSS file or CSS class? I want to do it just simply using Delphi code.

You can change the scrollbar colors using the following code:
And this can be turned into a nice Delphi procedure as follows:
This procedure can then easily be used to change the colors of a scrollbar in a
TWebScrollBoxcomponent. The function is very nice, because you can pass in normal DelphiTColorvalues to it instead of needing to use HTML Colors.Here's an example: