5 Replies Latest reply on May 9, 2017 6:44 AM by TSGal

    Close Window menu override bug in Windows

    ChrisBishop

      Summary

      Close Window menu override bug in Windows

      Product

      FileMaker Pro

      Version

      13 and 14

      Operating system version

      Windows

      Description of the issue

      When you use a Custom Menu set and override the Close Window command, closing a window that's underneath another window (not the frontmost window) causes the wrong window to be the focus of the script.

      When you use Get ( WindowName ) , it'll display the frontmost window's name instead of the window where you hit the X to close.  If you use Close Window ( Current Window ) , it closes the wrong window.

      This is an issue in Windows only - the Macintosh version functions properly.

      Steps to reproduce the problem

      1. Assign a custom menu set that overrides the "Close Window" step with a script that performs the step "Close Window (Current Window)".

      2. Duplicate your window by selecting "New Window" in the Window menu.

      3. Hit the red X to close the original window (without first bringing the original window to the foreground).

      Expected result

      The window that you targeted to close should close.

      Actual result

      The frontmost window closes instead.

      Workaround

      Perhaps use a script trigger on the layout instead of in the custom menu set?  However, this is not ideal with a solution that has 100 layouts.