How to modify the color of a TProgressBar (Views: 29)
Problem/Question/Abstract: How to modify the color of a TProgressBar Answer: If you have 4.71 or greater CommCtrl32.dll version, you can use this to set the bar color: SendMessage(ProgressBar1.Handle, PBM_SETBARCOLOR, 0, clLime); or SendMessage(ProgressBar1.Handle, PBM_SETBKCOLOR, 0, clGreen); The messages are defined in COMMCTRL.pas. |