Can the Gui's close button be disabled Topic is solved
Can the Gui's close button be disabled
Can the Gui's close button(upper right corner) be disabled, like the enlarge button turn grey.
- Attachments
-
- close_button.png
- (9.02 KiB) Downloaded 175 times
Last edited by songdg on 18 Apr 2024, 23:06, edited 1 time in total.
Re: Can the Gui's close button be disabled
Return 1 on gui close:
Code: Select all
MyGui := Gui()
MyGui.OnEvent("Close", (*)=>1)
MyGui.Show("w200 h50")
Re: Can the Gui's close button be disabled
Thanks, I just want it to turn grey, so no one would even bother to click on it.ntepa wrote: ↑18 Apr 2024, 22:29Return 1 on gui close:Code: Select all
MyGui := Gui() MyGui.OnEvent("Close", (*)=>1) MyGui.Show("w200 h50")
Re: Can the Gui's close button be disabled Topic is solved
Hallo,
try:
"Min": 0xF020
"Max": 0xF030
"Close": 0xF060
try:
Code: Select all
#Requires AutoHotkey v2.0
MyGui := Gui()
DllCall("user32\DeleteMenu", "UInt", DllCall("user32\GetSystemMenu"
, "UInt", MyGui.Hwnd, "UInt", False), "UInt", 0xF060, "UInt", 0)
MyGui.Show("w200 h50")
"Max": 0xF030
"Close": 0xF060
Re: Can the Gui's close button be disabled
Danke schönRohwedder wrote: ↑19 Apr 2024, 01:35Hallo,
try:"Min": 0xF020Code: Select all
#Requires AutoHotkey v2.0 MyGui := Gui() DllCall("user32\DeleteMenu", "UInt", DllCall("user32\GetSystemMenu" , "UInt", MyGui.Hwnd, "UInt", False), "UInt", 0xF060, "UInt", 0) MyGui.Show("w200 h50")
"Max": 0xF030
"Close": 0xF060
Re: Can the Gui's close button be disabled
Vielen Dank