Gui picture value empty problem

Discuss the future of the AutoHotkey language
rodemp
Posts: 44
Joined: 15 Nov 2016, 00:28

Gui picture value empty problem

24 Oct 2018, 01:53

Code: Select all

Gui:=GuiCreate()
vpic:=Gui.Add("pic", "x0 y0")
Gui.Show("w400 h400")
Gui.OnEvent("Close", () => ExitApp())
Return
F1::
vpic.value:="pic.png"
return

F2::
vpic.value:="" ; invalid value error
return
Temporarily resolved using try

try
vpic.value:=""
swagfag
Posts: 3087
Joined: 11 Jan 2017, 17:59

Re: Gui picture value empty problem

24 Oct 2018, 07:18

set ctrl.Visible and ctrl.Enabled to false

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 10 guests