Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TProgressBar Color

Status
Not open for further replies.

ZeeNer

Programmer
Jun 2, 2002
38
CA
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 :p

.Brush.Color only allow me to change the BackGround color ;(
 
From the help file:

...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).

Arte Et Labore
 
Oh Yeah =) Thx Stretchwickster for the link !
 
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.

[bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top