January 26, 200718 yr 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, 200718 yr by Guest
January 26, 200718 yr 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
January 26, 200718 yr Author 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)
Create an account or sign in to comment