how to change the style of the scrollbar of a TWebPanel in Delphi with TMS Web Core?

50 Views Asked by At

How can I change the style of the scrollbar of a TWebPanel (or a TWebScrollBox) ? I would like to change opacity for example, or make it rounded and only visible when scrolling.

I tried to change some properties with ElementHandle.style

  WebPanel1.ElementHandle.style.setProperty('overflow-y','auto');
  WebPanel1.ElementHandle.style.setProperty('scrollbar-color','blue green') ;
  WebPanel1.ElementHandle.style.setProperty('scrollbar-width','thin') ;

but still I cannot change the opacity or border radius of the scrollbars.

And also, this works with Firefox but not with Chrome.

(I have the same results when using the TWebCSSClass component)

Any suggestion?

screenshot with Firefox:

screenshot with Firefox

screenshot with Chrome:

screenshot with Chrome

0

There are 0 best solutions below