Thomas An Posted January 26, 2007 Posted January 26, 2007 (edited) Hi all, There is this problem: 1. There is a script that brings up a popup and pauses for the user to act within that popup window. 2. There is a cancel button for the user to close the popup (and the underlying script resumes with the rest of the steps) 3. Now if the user presses the 'X' button of the popup window (the standard Windows button) ... then it forces a close causing the underlying script to keep waiting (the "continue" button appears on the left; the status area) Is there any type of error trapping that can detect this problem ? I would like to know when the 'X' button is pressed so that I can treat it as a 'Cancel' command. Thomas PS. While we are at it: How can we prevent a user from resizing a layout / popup ? Edited January 26, 2007 by Guest
mr_vodka Posted January 26, 2007 Posted January 26, 2007 I would fully read through both these threads Thread 1 Thread 2 Also, you may want to invest in this plugin. It is very affordable and can grey out the 'X' completely as well as locking window resizing. Windows Utility Plugin
Thomas An Posted January 26, 2007 Author Posted January 26, 2007 John, Thank you ! Those links were an excellent read. Best Thomas
Thomas An Posted January 26, 2007 Author Posted January 26, 2007 Ok, it is resolved. It only needed one line "Allow User Abort = Off" and it does exactly what I want. (There was no need for the suggested loop structure that some people mentioned in the other threads; the abort=off was sufficient ... because my originating script needed to resume afterwards; but not halt)
Recommended Posts
This topic is 6510 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now