johnrh Posted May 26, 2003 Posted May 26, 2003 I am having a problem with corrupt files and have narrowed it down to the user closing the application via the windows X button (top right of screen) instead of using the quit button which closes all the files in an orderly manner. I need a way to disable the window button at the top right forcing users to use the quit script. the application will eventually run in runtime (developer) but I dont want to use Kiosk mode. Any suggestions - others MUST have hit the same situation Many thnaks John
cjaeger Posted May 26, 2003 Posted May 26, 2003 why not run a closing script which calls the actual close script in main database. (set it in preferences->document) alternatively, you can run display message "please use close button ... or use a loop wit pause(1 sec)
SteveB Posted May 26, 2003 Posted May 26, 2003 I'm not sure but I think Secure FM from New Millenium will enable you to remove the Windows Close (as well as specific menu items and whole menus). Steve
LaRetta Posted May 26, 2003 Posted May 26, 2003 Hi! WindowUtility (by PracticeMaker) will also stop the closing of a window, using External("Wind-DisableWindowClose", "WindowName|Switch") and this particular function is cross-platform (some WindowUtility functions aren't). URL is: http://www.practicemaker.com/ WindowUtility has been discussed on this Forum before and you might like to research those posts. It's obviously a great program, although I'm not sure it can be used in a runtime Cheers! LaRetta
Lee Smith Posted May 26, 2003 Posted May 26, 2003 I agree with Christian, Any multiple file solution should always have a closing script, along with an opening script too. In my opinion, any solution with more than one file that doesn't have a closing script indicates to me that the developer is either sloppy or lazy. In addition, a closing script should only close the set of files, not FileMaker. Nothing tees me off more than to have FileMaker close when I close a file. my two cents worth Lee
Kundinger Posted May 27, 2003 Posted May 27, 2003 Hello John, Your issues are not uncommon to customized systems. The key to this type of system is to 'think out' every possible user-scenario... meaning users tend to do the unexpected. To solve the issue of 'improperly' closed files (force-quit, crash, close, quit, etc.), I have implemented 'opening' & 'closing' scripts to reset globals and to 'properly' open and close files. I utilize a set of script steps in the 'closing' script that will check to see if the user is actually 'quiting' the system or if the user is trying to 'close' a specific file. If the user is 'legitimately' quiting the system (from a MainMenu file)... the MainMenu file will close all other files properly. If the user is 'improperly' closing files... the 'closing' script will 'alert' the user that they are attempting to perform an 'improper' operation. The user will then be given a few 'choices'... "Cancel"... to continue working; "Hide"... to hide the system; or, "Quit"... to quit the system. The above ideas should be able to be integrated using built-in FileMaker capabilities and with minimal effort and minimal user 'confusion'. I hope these ideas help. Feel free to contact me directly for further assistance. Good Luck! Bob Kundinger [email protected]
Anatoli Posted May 27, 2003 Posted May 27, 2003 I've found that closing scripts are NOT executed if networked file is closed by Ctrl+W. FM5.5, W2k.
Recommended Posts
This topic is 7849 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 accountSign in
Already have an account? Sign in here.
Sign In Now