You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thank you for creating this library! It is a really nice addition to the "boring" windows buttons.
Issue 1
While implementing it in my own project, I discovered an issue on my Windows 10 VM which probably affects most Windows 10 users.
I am using the code from the original file to explain the issue(s) properly.
myGui := Gui("Resize")
; The default value of this property is an empty string.
myGui.BackColor := 0x202020
btn := myGui.AddButton("xm w300", "This button is colored successfully when myGUI.BackColor is explicitly specified")
btn.SetColor("0xaa2031", "FFFFCC", , "fff5cc", 9)
myGui.Show("w280 AutoSize")
When myGUI.BackColor is explicitly specified to be "0x202020" in this case, the SetColor() function works properly on both Windows 10 and 11. However, if you do not specify myGUI.BackColor, it's value would be an empty string by default.
This isn't a problem on Windows 11, as the condition below seems to affect the outcome of the operation, which avoids the issue, but causes a problem on Windows 10. this._btnBkColor := (colorBehindBtn ?? !IS_WIN11) && _BtnColor.RgbToBgr("0x" (this.Gui.BackColor))
Error Message 1
On Windows 10, I received the following error message:
Error: Parameter #1 of Number.Call requires a Number, but received a String.
This issue can be reproduced by running the same code from above on a Windows 10 machine (or changing static IS_WIN11 := false). It probably has to do with the first issue and occurs when I try to close the GUI.
Error Message 2
Error: This value of type "Gui.Button" has no property named "__hbrush".
It is possible to avoid the first issue by explicitly specifying a value for myGui.BackColor, but most of the time people either forget to do that or simply want to use the default color. However, I couldn't find a way to address the second issue, which happens when you try to close the GUI containing any colored button.
The text was updated successfully, but these errors were encountered:
Hey, thank you for creating this library! It is a really nice addition to the "boring" windows buttons.
Issue 1
While implementing it in my own project, I discovered an issue on my Windows 10 VM which probably affects most Windows 10 users.
I am using the code from the original file to explain the issue(s) properly.
When myGUI.BackColor is explicitly specified to be "0x202020" in this case, the SetColor() function works properly on both Windows 10 and 11. However, if you do not specify myGUI.BackColor, it's value would be an empty string by default.
This isn't a problem on Windows 11, as the condition below seems to affect the outcome of the operation, which avoids the issue, but causes a problem on Windows 10.
this._btnBkColor := (colorBehindBtn ?? !IS_WIN11) && _BtnColor.RgbToBgr("0x" (this.Gui.BackColor))
Error Message 1
On Windows 10, I received the following error message:
Issue 2
This issue can be reproduced by running the same code from above on a Windows 10 machine (or changing
static IS_WIN11 := false
). It probably has to do with the first issue and occurs when I try to close the GUI.Error Message 2
Summary
It is possible to avoid the first issue by explicitly specifying a value for
myGui.BackColor
, but most of the time people either forget to do that or simply want to use the default color. However, I couldn't find a way to address the second issue, which happens when you try to close the GUI containing any colored button.The text was updated successfully, but these errors were encountered: