Jump to content

Overcoming the Close Window controls?


Justin P.

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

Recommended Posts

Hello!

Quick question as to whether there is any way to overcome the normal "window close" controls (e.g. on a OS X Mac, the top left red button).

I have certain validation scripts that run upon exiting from a field (using a free event plugin), but they can sidestepped by a user who changes a field and then closes the window (without leaving that field).

I could script a close window button, but that's of no use if I don't void the normal OS one.

Any way to do this without expensive "menu" plug-ins?

Thanks for your assistance.

Justin.

Link to comment
Share on other sites

One common method is to lock the use in a paused script, but even this can be circumvented under Windows by quitting the application.

This is why the built-in field-level validation is preferred.

Link to comment
Share on other sites

How are you implementing the script event? Using auto-enter to trigger the script is probably how you're doing it, but if you set it up to use field validation calc., then it will run when the user closes the file while they're in the field.

To your question, one way to disable the close box is to pause in the middle of an infinitely looping script with user abort off. The user is stuck in the script (the close box and many other menu controls are disabled) until they run a script event that exits the loop. (this could be part of your triggered script)

Dana

Link to comment
Share on other sites

You can get around the quitting the application hole by adding a flag field that's required to have a value, then hiding it behind a button and not allowing field entry. Then there's no way a user can quit FMP without using your scripted button to get out of the loop. (The button populates the flag field) I used this for a data entry kiosk on windows with FMP6 for a couple of years until I moved to a kiosk-mode enabled solution in FMP7.

Link to comment
Share on other sites

The loop doesn't just run infinitely... it pauses on every iteration waiting for your input (so it won't eat up cycles). You just have to make sure to program a way out of it. If you only allow one way out, the user is forced to use your scripts.

Link to comment
Share on other sites

kiosk mode is available only by enabling it using the developer utilities in filemaker developer. Basically, you enable this mode in a file for certain non-admin privilege sets. When users with these privilege sets open the file, all the menus, window title bars and resize controls disappear. Also, access to the rest of the computer and OS is limited to only what you allow through filemaker scripted buttons. You don't need filemaker developer to use a kiosk-enabled file, but you do need it (or need to know someone who will do it for you) to enable the file.

Dana

Link to comment
Share on other sites

This topic is 6992 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.