Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Custom script attached to "close window" or use OnWindowClose ?


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

Recommended Posts

Posted

Can anyone think of the pro's / con's between:

 

a) Custom script attached to "close window" (set in a custom menu)

B) Custom script attached to OnWindowClose (set in File Options, script triggers)

Posted

Well, OnLastWindowClosed is automatic and doesn't require any mouse clicks. Or perhaps I misunderstand the question . . .

Posted

Well they do the same thing.

 

If a user hits cmd-w, or clicks the close box, or selects file-->close window

 

The only difference I can see is that the script step "close window" will NOT trigger a custom menu, but WILL trigger OnCloseWindow.

 

Usually, when there's two ways to do something, there's pros and cons to each.

 

For example, a layout trigger of OnModeEnter (say, for entering find mode) works very differently to a custom menu attached to View-->Find menu. If you trigger a script to View-->Find, you can perform functions BEFORE you enter Find mode whereas the layout trigger will only trigger after entering Find Mode.

 

But with closing windows, I can't see why they've put the same function in two different places.

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