Re: change the color of the scrollbar of listboxPosted by webmaster Guido on July 29, 2003 at 18:06:24: In Reply to: Re: change the color of the scrollbar of listbox posted by ikari on July 29, 2003 at 10:24:01: : SO HOW TO DO IT IN DELPHI??? (sorry for caps, i just got mad, i search everywhere on the net for ownerdrawing a scrollbar or anything like that and the only answer i get is 'SORRY, IT'S NOT ABOUT JAVASCRIPT' - how can you!? :<<<< ----------------------- In Delphi, scrollbars have a property "Color", that allows you to change the color of the "background" of the scrollbar, e.g.: However, the color of the scrollbar's buttons and "thumb", just like a form's menu bar, button face, and so on... are controlled by the operating system. You can change these with the API-function SETSYSCOLORS(), but then the colors are changed system-wide; meaning: the colors of *all* the windows will change, also the windows outside of your application. I assume that you don't want this to happen. But you could use a custom scrollbar component. There are lots of freeware scrollbar-like components available, see for example at Torry's Delphi Pages www.torry.net
[ DelphiLand: free Delphi source code, tips, tutorials ] |
|