Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7054 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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.

Posted (edited)

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 by Guest
Posted

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.

Posted (edited)

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 by Guest

This topic is 7054 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.