Stop File Exit

General support questions.
Posts: 9
Joined: Wed Sep 27, 2006 1:12 pm
PostPosted: Fri Feb 02, 2007 11:39 am
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.
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Tue Feb 06, 2007 6:39 am
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.
John Sindelar
SeedCode

Return to General Support

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron
(855) SEEDCODE
[email protected]
Follow us: