Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Close window dosen't execute script.

Featured Replies

It seems the only script that runs is the very last window open. via the File Preferences.

There is no way to close a window with the CLOSE or [X} and perform a cleanup script.

Version: v7.x

Platform: Mac OS X Panther

OAM alluded that FMP 7's startup and shutdown scripts functions differently. I've determined that the startup script is called when the *first* window is opened -- when the file is opened -- and the shutdown script is called when the *last* window is closed -- which is when the file is closed.

Another case where the new file/table structure will require developers to re-align their thinking.

Perhaps there needs to be "On_New_Window_Open" and "On_Window_Close" handles to call scripts. Or maybe with a change of thinking they aren't even necessary?

  • Author

Vaughan said:

Perhaps there needs to be "On_New_Window_Open" and "On_Window_Close" handles to call scripts. Or maybe with a change of thinking they aren't even necessary?

I would agree with you on this that these calls are needed. But to make the unnecessary would me you create your own exit button but then it would be requirement for the developer to turn off the window control buttons for that matter allow the ability to disable the scroll bars and even the FMP functions in the lower left.

SD

Version: v7.x

Platform: Mac OS X Panther

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.