Page 1 of 1

Stop File Exit

PostPosted: Fri Feb 02, 2007 11:39 am
by kennedjw
I would like to do the following: When a user closes the database file, I would like to display a custom dialogue that basically says, "You're about to close the file. If you really meant to do that, select OK. If you meant to simply log off, then select Log Off." Then, if the user hits OK then the file can close. But if hits Log Off, I want it to call the Re-Login script step and then STOP THE FILE FROM CLOSING. It's just the last part that I'm having trouble with. It seems that once you hit the X on the only open window in the file or select File -> Close, it can call the script via the File Options and it'll display the dialogue and even re-login, but immediately after the log-in it will still close. How do I stop it from closing? I'm just trying to make it so that my whole system doesn't shut down and have to reload just because someone was trying to log off. Any assistance here would be greatly appreciated.

PostPosted: Tue Feb 06, 2007 6:39 am
by John Sindelar
HI. I think one of the nicest ways to do this is to remap the Close command using Custom Menus. (You'd edit the "File" menu and change the "close" command to run one of your scripts.) You can also use plugins for this: I believe Menu Magic works nicely.