<br /><br />Yan,<br /><br /><br /><br /><br /><br /><br /><br />The best I can tell you on this one is to<br />go back about three or four years ago in the archive. Look for posts by Paul<br />Klock on this topic (or closing using the ‘x’ button). <br /><br /><br /><br /><br /><br /><br /><br />As I recall, there is a way to do this,<br />but it is some fairly serious work. The ‘x’ in the Window is not<br />controlled by Epic, but by the OS and thus you need to capture that action for<br />the callback to function.<br /><br /><br /><br /><br /><br /><br /><br />Lynn<br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br />From: Ji, Yan<br /> <br /><br />Sent: Saturday, September 09, 2006<br />2:33 PM<br /><br />To: arbortext-adepters<br /><br />Subject: stop close window<br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br /><font<br/>size=2 face=Arial>Adepters,<br /><br /><br /><br /><font<br/>size=2 face=Arial> I<br />want to re-confirm when user close a window using X button. I add<br />winQuitCallback function to my window. In this function I ask user if he want<br />to close window or not. If user chooses yes then I close window.<br />Otherwise this window should not be closed. But it seams that nomatter I<br />return 0 or -1, the window always is closed. Can anybody show me how to<br />stop window close?<br /><br /><br /><br /><font<br/>size=2 face=Arial><br /><br /><br /><br /><font<br/>size=2 face=Arial>Thanks,<br /><br /><br /><br /><font<br/>size=2 face=Arial>Yan<br /><br /><br /><br /><font<br/>size=2 face=Arial><br /><br /><br /><br /><font<br/>size=2 face=Arial><br /><br /><br /><br /> <br /><br />>> To unsubscribe from the list, send an email to<br />listmanager@maillist.arbortext.com with the following in the body: unsubscribe<br />adepters - For additional information on the adepters list (how to subscribe or<br />unsubscribe etc), send an email to: listmanager@maillist.arbortext.com with the<br />following in the body: info Adepters - You may also go to forums.arbortext.com,<br />enter the Adepters folder and change your subscription options and<br />preferences.>> <br /><br /><br /><br />