I've got an MDIChild window created with -onTerminate => \&closeChild in its options.
When the X box is clicked on the window, closeChild runs fine and then the window closes. However, if I close it by sending $client->Close($child);, the window closes *without* closeChild being called at all.
From Microsoft's documentation, it appears that this is a bug (i.e.,
the expected behavior is that MDIClient's Close method should do the exact same thing as clicking the Close box on the child window). Can anyone come up with a workaround for this? As it is, if I close my whole application, it shuts down without the MDIChildren getting a chance to object (if they contain unsaved data), and the "Close All" menu item I'm trying to add leads to potentially losing data as well. Thanks, -- Geoffrey Spear http://www.geoffreyspear.com/