Page 1 of 1

Gui picture value empty problem

Posted: 24 Oct 2018, 01:53
by rodemp

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:=""

Re: Gui picture value empty problem

Posted: 24 Oct 2018, 07:18
by swagfag
set ctrl.Visible and ctrl.Enabled to false