Code: Select all
Error: Unknown method.
Specifically: Event_Close
iPhilip wrote: ↑23 May 2019, 15:38Code: Select all
myGui := GuiCreate(,, Events) ; Events is the "event sink object" myGui.AddText("", "Press Alt+F4 or the X button in the title bar.") myGui.OnEvent("Close", "Event_Close") ; Callback is a method registered by name: Event_Close myGui.Show class Events { Event_Close(thisGui) { MsgBox "Closing Gui: " thisGui.title "`nand exiting." } }