Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

Popover CardWindow

All examples are included with download of MBS FileMaker Plugin.

Popover CardWindow.fmp12

Overview
Tables1
Relationships0
Layouts2
Scripts4
Value Lists0
Custom Functions0
Custom Menus0
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseScript: [OnWindowClose]
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Popover CardWindow
0 fields defined, 0 record
Popover CardWindow

Layout Objects: Popover CardWindow

Buttons

Button PropertiesCoordinatesScript/Script Step
    Object Name:
  • cardWindowButton
    Type:
  • Text: Show Attached Card Window
  • Top: 100 pt
  • Left: 52 pt
  • Bottom: 197 pt
  • Right: 223 pt
  • Anchoring: Left, Top
Perform Script [ “[button] Show Card Window attached to button” ]

Scripts:


Button PropertiesCoordinatesScript/Script Step
    Object Name:
  • cardWindowButton Copy
    Type:
  • Text: Show Centered Card Window
  • Top: 100 pt
  • Left: 281 pt
  • Bottom: 197 pt
  • Right: 452 pt
  • Anchoring: Left, Top
Perform Script [ “[button] Show Card Window centered” ]

Scripts:


Button PropertiesCoordinatesScript/Script Step
    Object Name:
  • cardWindowButton Copy2
    Type:
  • Text: Show fixed coord Card Window
  • Top: 100 pt
  • Left: 510 pt
  • Bottom: 197 pt
  • Right: 681 pt
  • Anchoring: Left, Top
Perform Script [ “[button] Show Card Window fixed coordinates” ]

Scripts:


Layout Objects: My Card Window Layout

Script Hierarchy

[button] Show Card Window attached to button
[button] Show Card Window centered
[button] Show Card Window fixed coordinates
[OnWindowClose]

Next Script: [[button] Show Card Window centered]
Script Name[button] Show Card Window attached to button
Run script with full access privilegesOff
Include In MenuNo
Layouts that use this script
Scripts that use this script
    Script Definition
    Script Steps
    • If [ not MBS( "EventMonitor.GetEnabled" ) ]
    • Set Variable [ $r; Value:MBS( "EventMonitor.Install" ) ]
    • End If
    • Set Variable [ $left; Value:GetLayoutObjectAttribute ( "cardWindowButton" ; "right" ) - Get ( WindowLeft ) ]
    • Set Variable [ $top; Value:GetLayoutObjectAttribute ( "cardWindowButton" ; "top" ) - Get ( WindowTop ) - ( Get ( WindowHeight ) - Get ( WindowContentHeight ) ) ]
    • Set Variable [ $r; Value:MBS( "EventMonitor.SetCardWindow"; MBS( "Window.FindByTitle"; Get ( WindowName ) ) ; $left ; $top ; 582 ; 277 ; Get(FileName); 2 ) ]
    • New Window [ Style: Card; Name: "My Card Window"; Using layout: “My Card Window Layout”; Top: $top; Left: $left; Close: No; Minimize: No; Maximize: No; Resize: No; Menu Bar: No; Dim parent window: No; Toolbars: No ]
    • Set Variable [ $$_CARDWINDOW_SHOWING; Value:True ]
    • Set Variable [ $$_CARDWINDOW_NAME; Value:Get ( WindowName ) ]
    • Set Variable [ $$_CARDWINDOW_HOTKEY_CLOSE; Value:MBS("HotKey.Register"; "Escape" ; "") ]
    • Set Variable [ $r; Value:MBS("HotKey.SetScript"; $$_CARDWINDOW_HOTKEY_CLOSE ; Get(FileName); 2 ) ]
    Fields used in this script
      Scripts used in this script
        Layouts used in this script
        Tables used in this script
          Table occurrences used by this script
            Custom Functions used by this script
              Custom menu set used by this script

                Previous Script: [[button] Show Card Window attached to button]Next Script: [[button] Show Card Window fixed coordinates]
                Script Name[button] Show Card Window centered
                Run script with full access privilegesOff
                Include In MenuNo
                Layouts that use this script
                Scripts that use this script
                  Script Definition
                  Script Steps
                  • If [ not MBS( "EventMonitor.GetEnabled" ) ]
                  • Set Variable [ $r; Value:MBS( "EventMonitor.Install" ) ]
                  • End If
                  • Set Variable [ $r; Value:MBS( "EventMonitor.SetCardWindow"; MBS( "Window.FindByTitle"; Get ( WindowName ) ) ; -1 ; -1 ; 582 ; 277 ; Get(FileName); 2 ) ]
                  • New Window [ Style: Card; Name: "My Card Window"; Using layout: “My Card Window Layout”; Close: No; Minimize: No; Maximize: No; Resize: No; Menu Bar: No; Dim parent window: No; Toolbars: No ]
                  • Set Variable [ $$_CARDWINDOW_SHOWING; Value:True ]
                  • Set Variable [ $$_CARDWINDOW_NAME; Value:Get ( WindowName ) ]
                  • Set Variable [ $$_CARDWINDOW_HOTKEY_CLOSE; Value:MBS("HotKey.Register"; "Escape" ; "") ]
                  • Set Variable [ $r; Value:MBS("HotKey.SetScript"; $$_CARDWINDOW_HOTKEY_CLOSE ; Get(FileName); 2 ) ]
                  Fields used in this script
                    Scripts used in this script
                      Layouts used in this script
                      Tables used in this script
                        Table occurrences used by this script
                          Custom Functions used by this script
                            Custom menu set used by this script

                              Previous Script: [[button] Show Card Window centered]Next Script: [[OnWindowClose]]
                              Script Name[button] Show Card Window fixed coordinates
                              Run script with full access privilegesOff
                              Include In MenuNo
                              Layouts that use this script
                              Scripts that use this script
                                Script Definition
                                Script Steps
                                • If [ not MBS( "EventMonitor.GetEnabled" ) ]
                                • Set Variable [ $r; Value:MBS( "EventMonitor.Install" ) ]
                                • End If
                                • Set Variable [ $r; Value:MBS( "EventMonitor.SetCardWindow"; MBS( "Window.FindByTitle"; Get ( WindowName ) ) ; 300 ; 300 ; 582 ; 277 ; Get(FileName); 2 ) ]
                                • New Window [ Style: Card; Name: "My Card Window"; Using layout: “My Card Window Layout”; Top: 300; Left: 300; Close: No; Minimize: No; Maximize: No; Resize: No; Menu Bar: No; Dim parent window: No; Toolbars: No ]
                                • Set Variable [ $$_CARDWINDOW_SHOWING; Value:True ]
                                • Set Variable [ $$_CARDWINDOW_NAME; Value:Get ( WindowName ) ]
                                • Set Variable [ $$_CARDWINDOW_HOTKEY_CLOSE; Value:MBS("HotKey.Register"; "Escape" ; "") ]
                                • Set Variable [ $r; Value:MBS("HotKey.SetScript"; $$_CARDWINDOW_HOTKEY_CLOSE ; Get(FileName); 2 ) ]
                                Fields used in this script
                                  Scripts used in this script
                                    Layouts used in this script
                                    Tables used in this script
                                      Table occurrences used by this script
                                        Custom Functions used by this script
                                          Custom menu set used by this script

                                            Previous Script: [[button] Show Card Window fixed coordinates]
                                            Script Name[OnWindowClose]
                                            Run script with full access privilegesOff
                                            Include In MenuNo
                                            Layouts that use this script
                                              Scripts that use this script
                                                Script Definition
                                                Script Steps
                                                • If [ Get ( WindowName ) = $$_CARDWINDOW_NAME ]
                                                • If [ $$_CARDWINDOW_SHOWING ]
                                                • Set Variable [ $$_CARDWINDOW_SHOWING; Value:"" ]
                                                • Close Window [ Current Window ]
                                                • Set Variable [ $$_CARDWINDOW_NAME; Value:"" ]
                                                • Set Variable [ $r; Value:MBS("EventMonitor.ClearCardWindow") ]
                                                • Set Variable [ $r; Value:MBS("HotKey.Unregister"; $$_CARDWINDOW_HOTKEY_CLOSE ) ]
                                                • Set Variable [ $$_CARDWINDOW_HOTKEY_CLOSE; Value:"" ]
                                                • Else
                                                • Exit Script [ ]
                                                • End If
                                                • Else
                                                • #manage rest of windows here
                                                • End If
                                                Fields used in this script
                                                  Scripts used in this script
                                                    Layouts used in this script
                                                      Tables used in this script
                                                        Table occurrences used by this script
                                                          Custom Functions used by this script
                                                            Custom menu set used by this script

                                                              Download example: Popover CardWindow

                                                              Used functions: