MBS FileMaker Plugin Example Databases

ImageView

All examples are included with download of MBS FileMaker Plugin.

ImageView.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts6
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
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
ImageView
1 field defined, 1 record
ImageView

Fields

Table Name: ImageView - 1 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ImageContainerNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1

      Layout Objects: ImageView

      Regular Fields

      Field Name: ImageView::ImageContainer
      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
      • Top: 101 pt
      • Left: 642 pt
      • Bottom: 226 pt
      • Right: 895 pt
      • Anchoring: Left, Top
      Field Format:
      • Edit Box
      Field Behavior:
      • Allow field to be entered: In Find mode, In Browse mode
      • Touch keyboard type: Default for Data Type
      • Go to next field using: Tab key
      No

      Buttons

      Button PropertiesCoordinatesScript/Script Step
        Type:
      • Text: Create ImageView
      • Top: 14 pt
      • Left: 53 pt
      • Bottom: 44 pt
      • Right: 188 pt
      • Anchoring: Left, Top
      Perform Script [ “Create with Size” ]

      Scripts:


      Graphic Objects

      Graphic Object PropertiesCoordinates
        Object Name:
      • PlaceHolder
        Type:
      • Rectangle
        Hide Condition:
      • 1
      • Top: 137 pt
      • Left: 96 pt
      • Bottom: 190 pt
      • Right: 268 pt
      • Anchoring: Left, Top

      Script Hierarchy

      Create with Size
      Create with Control
      Close
      Close All
      Hide
      Show

      Next Script: [Create with Control]
      Script NameCreate with Size
      Run script with full access privilegesOff
      Include In MenuYes
      Layouts that use this script
      Scripts that use this script
        Script Definition
        Script Steps
        • #Query size of image
        • Set Variable [ $Image; Value:MBS( "GMImage.NewFromContainer"; ImageView::ImageContainer ) ]
        • Set Variable [ $w; Value:MBS( "GMImage.GetWidth"; $Image ) ]
        • Set Variable [ $h; Value:MBS( "GMImage.GetHeight"; $Image ) ]
        • Set Variable [ $r; Value:MBS( "GMImage.Destroy"; $Image ) ]
        • #We play half size for retina screen resolution
        • Set Variable [ $h; Value:Round($h/2;0) ]
        • Set Variable [ $w; Value:Round($w/2;0) ]
        • #We play half size for retina screen resolution
        • Set Variable [ $$ImageView; Value:MBS("ImageView.CreateWithSize"; 0; 100; 100; $w; $h) ]
        • Set Variable [ $r; Value:MBS("ImageView.SetImage"; $$ImageView; ImageView::ImageContainer) ]
        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: [Create with Size]Next Script: [Close]
                Script NameCreate with Control
                Run script with full access privilegesOff
                Include In MenuYes
                Layouts that use this script
                  Scripts that use this script
                    Script Definition
                    Script Steps
                    • #Query size of image
                    • Set Variable [ $Image; Value:MBS( "GMImage.NewFromContainer"; ImageView::ImageContainer ) ]
                    • Set Variable [ $w; Value:MBS( "GMImage.GetWidth"; $Image ) ]
                    • Set Variable [ $h; Value:MBS( "GMImage.GetHeight"; $Image ) ]
                    • Set Variable [ $r; Value:MBS( "GMImage.Destroy"; $Image ) ]
                    • #We play half size for retina screen resolution
                    • Set Variable [ $h; Value:Round($h/2;0) ]
                    • Set Variable [ $w; Value:Round($w/2;0) ]
                    • #We play half size for retina screen resolution
                    • Set Variable [ $$ImageView; Value:MBS("ImageView.CreateWithControl"; 0; "PlaceHolder") ]
                    • Set Variable [ $r; Value:MBS("ImageView.SetImage"; $$ImageView; ImageView::ImageContainer) ]
                    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: [Create with Control]Next Script: [Close All]
                            Script NameClose
                            Run script with full access privilegesOff
                            Include In MenuYes
                            Layouts that use this script
                              Scripts that use this script
                                Script Definition
                                Script Steps
                                • If [ Length ( $$ImageView ) > 0 ]
                                • Set Variable [ $r; Value:MBS("ImageView.Release"; $$ImageView) ]
                                • Set Variable [ $$ImageView; Value:"" ]
                                • 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

                                              Previous Script: [Close]Next Script: [Hide]
                                              Script NameClose All
                                              Run script with full access privilegesOff
                                              Include In MenuYes
                                              Layouts that use this script
                                                Scripts that use this script
                                                  Script Definition
                                                  Script Steps
                                                  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: [Close All]Next Script: [Show]
                                                                Script NameHide
                                                                Run script with full access privilegesOff
                                                                Include In MenuYes
                                                                Layouts that use this script
                                                                  Scripts that use this script
                                                                    Script Definition
                                                                    Script Steps
                                                                    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: [Hide]
                                                                                  Script NameShow
                                                                                  Run script with full access privilegesOff
                                                                                  Include In MenuYes
                                                                                  Layouts that use this script
                                                                                    Scripts that use this script
                                                                                      Script Definition
                                                                                      Script Steps
                                                                                      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: ImageView

                                                                                                    Used functions:




                                                                                                    Links
                                                                                                    MBS Xojo Plugins