Does anyone know how i could turn to Red the 'progess bar' color of a TProgessBar component? I know it's useless but it's for the 'look' of my application
.Brush.Color only allow me to change the BackGround color ;(
...the rectangular progress bar gradually fills from left to right with the system highlight color...
You can change the color by changing your display options (Right-click on the wallpaper and click "Properties" then select the Appearance tab). Choose "Selected Items" from the "Item:" combo box and set the color to a different value and click Apply.
I don't know whether there is an API that allows this to be done from within your program. But would you really want to change the user's personal color scheme?
You could just use the gauge component from the Samples tab. Does exactly the same but with much greater flexability (and you can set whatever color you want).
you could also make a new component, just look op clHighlight and make that clRed and recompile into your component. This way your not meddling about the user's color scheme.
BobbaFet
Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.