How to change scrollbar color in Delphi?

How to change scrollbar color in Delphi?

+4
source share
4 answers

Make your life easy and just download the component. i.e.: http://www.torry.net/pages.php?id=160

because, as far as I know, you can change the background of the scroll bar, as in

ScrollBar1.Color := clRed; 
+2
source

You cannot do this easily, you will have to implement your own scroll bar (or use one that someone else has already done). A good article that will guide you through this process (although not for Delphi) is available.

+2
source

I have not tried it, but this post assumes that you can override WndProc and process WM_CTLCOLORSCROLLBAR messages .

+2
source

By asking the user to use Display | Properties | Appearance and choosing the color that they want for various elements of Windows.

System colors are an element of the user's configuration and should not be changed in the application for no good reason. After all, it is a user machine, and the user is the one who cares about which color scrollbars; Your application should not.

+2
source

All Articles