MBS FileMaker Plugin Example Databases

Window Icon

All examples are included with download of MBS FileMaker Plugin.

Window Icon.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
Value Lists0
Custom Functions0
Custom Menus33
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
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Window Icon
2 fields defined, 1 record
Window Icon

Fields

Table Name: Window Icon - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
IconImageNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      IconMaskNormal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1

          Layout Objects: Window Icon

          Regular Fields

          Field Name: Window Icon::IconImage
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 126 pt
          • Left: 138 pt
          • Bottom: 251 pt
          • Right: 391 pt
          • Anchoring: Left, Top
          Field Format:
          • Edit Box
          Field Behavior:
          • Allow field to be entered: In Find mode, In Browse mode
          • Touch keyboard type: System Default
          • Go to next field using: Tab key
          No

          Field Name: Window Icon::IconMask
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 252 pt
          • Left: 138 pt
          • Bottom: 377 pt
          • Right: 391 pt
          • Anchoring: Left, Top
          Field Format:
          • Edit Box
          Field Behavior:
          • Allow field to be entered: In Find mode, In Browse mode
          • Touch keyboard type: System Default
          • Go to next field using: Tab key
          No

          Group Buttons

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Set Icon
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 168 pt
          • Left: 426 pt
          • Bottom: 193 pt
          • Right: 535 pt
          • Anchoring: Left, Top
          Perform Script [ “SetIcon” ]

          Scripts:


          Script Hierarchy

          SetIcon

          Script NameSetIcon
          Run script with full access privilegesOff
          Include In MenuYes
          Layouts that use this script
          Scripts that use this script
            Script Definition
            Script Steps
            • #Load images
            • Set Variable [ $pic; Value:MBS("GMImage.NewFromContainer"; Window Icon::IconImage) ]
            • Set Variable [ $mask; Value:MBS("GMImage.NewFromContainer"; Window Icon::IconMask) ]
            • #Set Icon on front window (filemaker parent window)
            • Set Variable [ $r; Value:MBS("Window.SetTitleIcon"; 0; $pic; $mask) ]
            • Set Variable [ $r; Value:MBS("Window.SetTitleIcon"; 0; $pic; $mask; 1) ]
            • #Set Icon on database window
            • Set Variable [ $w; Value:MBS( "Window.FindByTitle" ; "Window Icon") ]
            • Set Variable [ $r; Value:MBS("Window.SetTitleIcon"; $w; $pic; $mask) ]
            • Set Variable [ $r; Value:MBS("Window.SetTitleIcon"; $w; $pic; $mask; 1) ]
            • #Free memory
            • Set Variable [ $r; Value:MBS("GMimage.Destroy"; $pic) ]
            • Set Variable [ $r; Value:MBS("GMimage.Destroy"; $mask) ]
            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: Window Icon

                    Used functions:




                    Links
                    MBS Xojo Chart Plugins