August 2, 200520 yr I have a message box in one of my scripts that I do not want the user to have the ability to close by clicking on the little "X" in the upper right corner. Is this possible? Can this feature be overridden and how? If not. How do I get my script to 'halt' if this button is used by the user? Thanks.
August 2, 200520 yr I would expect that the user closing the box in this way would send an error code (I don't have FMP6 so I can't test it) so perhaps some error capture within the script would enable you to halt the script.
August 2, 200520 yr Look for "Allow User Abort" and Pause/Resume Script in Help. This will not hide the "X" close button but will disable it. Also be aware the user can click the "X" button on the main FM program and it will close out everything despite the fact that Allow User Abort is off. If you want to venture into the not so wonderful world of plug-ins you might look for Secure FM which I think deals with these issues. Edited August 2, 200520 yr by Guest
August 4, 200520 yr Author The 'error capture' was the clue. I started the script with: Set Error Capture (On) Show Message (...) If ("Status(CurrentError) <> 0 Go to Layout[orginal layout] Then I go into the meat of the message and finish with my end ifs. If the user clicks on the 'X' the window closes and returns them to where they started. Thanks for the info.
August 4, 200520 yr Author Spoke too soon. From what I can tell the "X" button takes on the role of the Default button (1) and cannot be over ruled. If clicked on it does exactly what the default button is set to do not matter what the Allow User Abort or Pause/Resume functions are set to. Edited August 5, 200520 yr by Guest
Create an account or sign in to comment