as an another way:
you could also use this in your code:
Code:
progressbar1.Fore.Draw.SolidColor.Color=rgba(241,117,0,255)
and use your color inside rgba()
for example:
rgba(241,117,0,255) //for orange color
rgba(19,228,0,255) //for green color
rgba(226,0,0,255) //for red color
you can get color numbers from one of the select color dialogs in designer
====================
by using this method
the code will be like this:
Code:
function cpucore1OnUpdate(Sender)
{
if(cpucore1.get("%Percent")<50)
{
progressbar1.Fore.Draw.SolidColor.Color=rgba(19,228,0,255)
}
else if(cpucore1.get("%Percent")>=50&cpucore1.get("%Percent")<80)
{
progressbar1.Fore.Draw.SolidColor.Color=rgba(241,117,0,255)
}
else if(cpucore1.get("%Percent")>=80)
{
progressbar1.Fore.Draw.SolidColor.Color=rgba(226,0,0,255)
}
}