info download mu online


Name: info download mu online
Category: Free
Published: worlvebora1972
Language: English

 


 


 

 

 

 

 

 

 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 

Board index » delphi » How can I change the progress bar color?
Mike Sandoval.
How can I change the progress bar color?
Does anyone know how to change the color of a progress bar? I am using four bars in my application and I think it would be good if they were all different colors. As far as I can tell, if I change the system highlight color, update the bar, and then return the system color, it should work. Unfortunately, I do not know how to change the system highlight color in code.
Does anyone have any ideas?
Thank you for all your help.
Dmitri Papiche.
Re:How can I change the progress bar color?
Quote.
"Mike Sandoval" wrote in message.
Quote.
> Does anyone know how to change the color of a progress bar? I am using four > bars in my application and I think it would be good if they were all > different colors. As far as I can tell, if I change the system highlight > color, update the bar, and then return the system color, it should work. > Unfortunately, I do not know how to change the system highlight color in > code.
Use the following lines to change background color and bar color correspondingly of your progress bar control (include CommCtrl unit to your uses clause):
ProgressBar1.Perform (PBM_SETBKCOLOR, 0, ); ProgressBar1.Perform (PBM_SETBARCOLOR, 0, );
For unknown reason background color doesn't change at my machine, as it should (Win98SE, any ideas why?), but fortunately, there is another approach for background color we can use:
Define TOpenProgressBar = class (TProgressBar); Then you can do the following: TOpenProgressBar (ProgressBar1).Color := ;
Regards, Dmitri Papichev.
Mike Sandova.
Re:How can I change the progress bar color?
Thank you for your help. That did the trick. I had to place the perform in the code just before I selected StepIt. I tried it first on my Form Create but the colors did not change.

http://remecucer1971.eklablog.com/a7v600-x-bios-download-no-downloa...

Views: 1

Comments are closed for this blog post

© 2020   Created by PH the vintage.   Powered by

Badges  |  Report an Issue  |  Terms of Service