- marked as minor
- edited description
- changed title to Progress control not accepting '.Opt()' options with "+"
Progress control not accepting '.Opt()' options with "+"
Issue #96
closed
AHK script for reference:
MyGui := Gui(, "Progress woes")
MyProgress := MyGui.Add("Progress", "x20 y20 w436 h36 cPurple", 0)
MyGui.OnEvent("Close", CloseMe)
MyGui.OnEvent("Escape", CloseMe)
MyGui.Show()
value := 0
While True {
if (value < 33) {
MyProgress.Opt("+cGreen")
}
else if (value >= 33) and (value <= 66) {
MyProgress.Opt("+cPurple")
}
else if (value >= 66) {
MyProgress.Opt("+cAqua")
}
else {
MyProgress.Opt("+cBlack")
}
MyProgress.Value := value
value := value + 1
if (value > 100)
{
Sleep(1000)
value := 0
}
Sleep(100)
}
CloseMe(*) {
ExitApp()
}
Comments (8)
-
reporter -
reporter - edited description
Workaround, same result as above.
MyGui := Gui("-DPIScale +E0x02080000", "Candy Progress") MyGui.OnEvent("Close", "CloseMe") MyGui.OnEvent("Escape", "CloseMe") MyProgress := MyGui.Add("Progress", "x20 y20 w436 h36") MyProgress.Opt("+cPurple") MyGui.Show("w480" "h80") value := 0 While True { global if (value >= 33) and (value <= 66) { MyProgress.Opt("cPurple") } else if (value >= 66) { MyProgress.Opt("cAqua") } else { MyProgress.Opt("cBlack") } MyProgress.Value := value value := value + 1 if (value > 100) { Sleep(1000) value := 0 } Sleep(100) } CloseMe() { ExitApp() }
-
reporter Well, almost the same output.
-
reporter - marked as trivial
-
repo owner I’ve committed a fix, it’ll work with or without a +.
-
reporter Tested, confirmed fixed. Thank you! Marking ‘resolved’ and closing.
-
reporter - changed status to resolved
-
reporter - changed status to closed
- Log in to comment