LC #42 Pipers Alley

View Full Version : On Close window...

12-04-2011, 06:40 PM
Is there a way to call functions when you exit/close a custom window? I have looked in the reference but cant find anything.

12-04-2011, 10:56 PM
window win;
showWindow win;

global proc foo()
print("window has been closed\n");

scriptJob -uiDeleted win foo;

The scriptJob dies with the window.

12-04-2011, 11:21 PM
Perfect! Much obliged.

CGTalk Moderation
12-04-2011, 11:21 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.