2006. november 18., szombat

How to modify the color of a TProgressBar


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.

Nincsenek megjegyzések:

Megjegyzés küldése