Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Re: Passing GUI events to another GUI / letting GUI events fall through

$
0
0
No, avoiding references to the GUI itself being passed indirectly back into the GUI (via an event handler or assigned property) is essential to avoid circular references. You can use bound functions and closures that refer to objects which don't directly or indirectly have any counted reference to the GUI.

SetTimer creates a timer, and a timer internally keeps a reference to the function to be called. You can't have a reference to a timer, so it is not a "circular" reference, but it is like storing the function (presumably bound function or closure) in a global variable.

Statistics: Posted by lexikos — 29 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles