Recent

Author Topic: Scrollbox, scrollbar Background Color, possible to change?  (Read 657 times)

bbrx

  • New Member
  • *
  • Posts: 15
Scrollbox, scrollbar Background Color, possible to change?
« on: February 08, 2025, 08:50:08 pm »
Hello,

I'm trying to find a solution to change background scrollbar color, my application has a dark background color and when I put component TScrollbox control, the scroll bar background color is silver on Windows 11, I don't know why. I try to on linux and the scroll bar is black.

I set "Scrollbox1.ParentBackground := True;
Scrollbox1.ParentColor := True; "

I even try to create CustomScrollbar but Nothing change.

My question is, it's possible to change scrollbar background color on windows 11? If no, because it's managed by OS, any alternatives?
Thanks for your help :)

Cheers,
« Last Edit: February 08, 2025, 08:57:06 pm by bbrx »

ASerge

  • Hero Member
  • *****
  • Posts: 2389
Re: Scrollbox, scrollbar Background Color, possible to change?
« Reply #1 on: February 09, 2025, 08:14:46 am »
My question is, it's possible to change scrollbar background color on windows 11?
Yes. Remove themes support (on application options).

bbrx

  • New Member
  • *
  • Posts: 15
Re: Scrollbox, scrollbar Background Color, possible to change?
« Reply #2 on: February 09, 2025, 07:24:54 pm »
Hello,
Thank you for your answer but it's not clear for me.
Where is application option?

Thanks.

dsiders

  • Hero Member
  • *****
  • Posts: 1377
Re: Scrollbox, scrollbar Background Color, possible to change?
« Reply #3 on: February 09, 2025, 07:32:48 pm »
Hello,
Thank you for your answer but it's not clear for me.
Where is application option?

Use Project Options > Application to uncheck the "Use manifest resource" check box.
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

bbrx

  • New Member
  • *
  • Posts: 15
Re: Scrollbox, scrollbar Background Color, possible to change?
« Reply #4 on: February 10, 2025, 10:33:39 am »
Thanks both! :)

 

TinyPortal © 2005-2018