anixon Posted February 17, 2007 Share Posted February 17, 2007 When using 'GuiCtrlCreateProgress' is it possible to change the 0 to 100 progressive bar display in this feature from say 'Green" to say 'Red'. I have tried this which of course does not workCODE#include <GuiConstants.au3> $wait = 100 $i = 0 GuiCreate("Progress Bar", 400, 400) GuiSetState() While 1 $progressbar = GuiCtrlCreateProgress(60, 80, 150, 20) GUICtrlSetColor(-1,0xff0000) ; Red For $i + $i to 100 GUICtrlSetData ($progressbar,$i) sleep($wait) If $i = 100 Then $i = 0 ExitLoop EndIf Next WEnd While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd Assistance would be appreciated Cheers Ant... Link to comment Share on other sites More sharing options...
Paulie Posted February 17, 2007 Share Posted February 17, 2007 Quoted from the HelpFileProgress controls cannot be painted if the "Windows XP style" is used. Link to comment Share on other sites More sharing options...
anixon Posted February 17, 2007 Author Share Posted February 17, 2007 Quoted from the HelpFileI am not sure what Windows XP Stype means. Does it mean that it does not work in Windows XP?CheersAnt.. Link to comment Share on other sites More sharing options...
Paulie Posted February 18, 2007 Share Posted February 18, 2007 I am not sure what Windows XP Stype means. Does it mean that it does not work in Windows XP?CheersAnt..Right Click anywhere on you desktop, and in the menu, open "Properties"In the "themes" tab, You will find a theme, most likely "Windows XP" Link to comment Share on other sites More sharing options...
anixon Posted February 18, 2007 Author Share Posted February 18, 2007 Right Click anywhere on you desktop, and in the menu, open "Properties"In the "themes" tab, You will find a theme, most likely "Windows XP"Thanks for that I changed my theme to Windows Classic and when running the script got the 'Red" Bar. I am sorry for the next question but what would be the code to change from the Windows XP theme to Windows Classic for the time that the progress bar is to be displayed in 'Red' and then back to the Windows XP theme after that processing is completed? Cheers Ant.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now