Tab Panel Remember / Restore

Version 2

     

    Script

     

    Compatibility
    Creator
    Mac OS X, Windows
    Christopher Gauntt
    FMP 8.5, 9, 10, 11
    Cordega Solutions
    Web: Yes
    File Type: FP7
    Server: Yes
    FileSize: ~ .13 megabytes
    http://www.cordega.com

    Description

    This pair of scripts when called will remember the tab panel order of any layout, and restore them when you return to the layout. No plug-in required. Tab panels just need to have object names.

     


    Code
    See file

     

    Sample Input

    Sample Output
    See file

    See file

    Developer's Notes

     

    The two scripts provided in the sample file can be dropped into any existing solution without modification, just copy and paste them in.

     

    Merely call the “Remember Tabs” script before navigating away from a layout, and then call the “Restore Tabs” script after you navigate to a layout. The only requirement is that each tab has to have an object name assigned to it.

     

    The Remember Tabs script not only remembers where all the tabs in all the tab controls are, but it also remembers the very top most tabs. I have found this useful in several ways, primarily to provide contextual help with whichever tab you are currently looking at.

     

    Full details and examples are in the sample file.

     

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.