I'm having issues with the __delete meta function not being called for an object which has been set to handle a guiControl's events, see this script,
Code: Select all
z:=new test
gui, new
gui, add, button, hwndbtn
o:=z.f.bind(z)
guicontrol, +g, % btn, % o ; comment/uncomment to see the problem
exitapp
class test {
__delete(){
msgbox
}
f(){
}
}
Could someone explain my mistake to me, or why this happens?
Thanks for your time, cheers.