MBS FileMaker Plugin Example Databases

Combine Pictures

All examples are included with download of MBS FileMaker Plugin.

Combine Pictures.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
Value Lists1
Custom Functions0
Custom Menus32
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
Combine Pictures
4 fields defined, 2 records
Combine Pictures

Fields

Table Name: Combine Pictures - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
BigImageNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      SmallImageNormal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
          ResultNormal, BinaryAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
              CompositeOpNormal, TextAuto-Enter:
              • Constant data: 1
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German

                  Layout Objects: Combine Pictures

                  Regular Fields

                  Field Name: Combine Pictures::BigImage
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 36 pt
                  • Left: 6 pt
                  • Bottom: 521 pt
                  • Right: 367 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: Combine Pictures::SmallImage
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 36 pt
                  • Left: 738 pt
                  • Bottom: 161 pt
                  • Right: 991 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: Combine Pictures::Result
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 36 pt
                  • Left: 372 pt
                  • Bottom: 521 pt
                  • Right: 733 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: Combine Pictures::CompositeOp
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 234 pt
                  • Left: 744 pt
                  • Bottom: 248 pt
                  • Right: 919 pt
                  • Anchoring: Left, Top
                  Field Format: 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
                  Yes

                  Group Buttons

                  Button PropertiesCoordinatesScript/Script Step
                    Type:
                  • Text: Combine
                    Additional Properties:
                  • Change to hand cursor over button
                  • Rectangular
                  • Top: 258 pt
                  • Left: 744 pt
                  • Bottom: 283 pt
                  • Right: 919 pt
                  • Anchoring: Left, Top
                  Perform Script [ “CombinePictures” ]

                  Scripts:


                  Value Lists

                  Value List NameSourceValuesOn Layouts
                  CompositeOpCustom
                  • 0 = UndefinedCompositeOp, 1 = OverCompositeOp, 2 = InCompositeOp, 3 = OutCompositeOp, 4 = AtopCompositeOp, 5 = XorCompositeOp, 6 = PlusCompositeOp, 7 = MinusCompositeOp, 8 = AddCompositeOp, 9 = SubtractCompositeOp, 10 = DifferenceCompositeOp, 11 = MultiplyCompositeOp, 12 = BumpmapCompositeOp, 13 = CopyCompositeOp, 14 = CopyRedCompositeOp, 15 = CopyGreenCompositeOp, 16 = CopyBlueCompositeOp, 17 = CopyOpacityCompositeOp, 18 = ClearCompositeOp, 19 = DissolveCompositeOp, 20 = DisplaceCompositeOp, 21 = ModulateCompositeOp, 22 = ThresholdCompositeOp, 23 = NoCompositeOp, 24 = DarkenCompositeOp, 25 = LightenCompositeOp, 26 = HueCompositeOp, 27 = SaturateCompositeOp, 28 = ColorizeCompositeOp, 29 = LuminizeCompositeOp, 32 = CopyCyanCompositeOp, 33 = CopyMagentaCompositeOp, 34 = CopyYellowCompositeOp, 35 = CopyBlackCompositeOp, 36 = DivideCompositeOp

                  Script Hierarchy

                  CombinePictures

                  Script NameCombinePictures
                  Run script with full access privilegesOff
                  Include In MenuYes
                  Layouts that use this script
                  Scripts that use this script
                    Script Definition
                    Script Steps
                    • Set Variable [ $BigImageRef; Value:MBS("GMImage.NewFromContainer"; Combine Pictures::BigImage) ]
                    • Set Variable [ $SmallImageRef; Value:MBS("GMImage.NewFromContainer"; Combine Pictures::SmallImage) ]
                    • Set Variable [ $SmallImageWidth; Value:MBS("GMImage.GetWidth";$SmallImageRef) ]
                    • Set Variable [ $SmallImageHeight; Value:MBS("GMImage.GetHeight";$SmallImageRef) ]
                    • Set Variable [ $BigImageWidth; Value:MBS("GMImage.GetWidth";$BigImageRef) ]
                    • Set Variable [ $BigImageHeight; Value:MBS("GMImage.GetHeight";$BigImageRef) ]
                    • Set Variable [ $X; Value:($BigImageWidth-$SmallImageWidth)/2 ]
                    • Set Variable [ $Y; Value:($BigImageHeight-$SmallImageHeight)/2 ]
                    • Set Variable [ $Error; Value:MBS( "GMImage.CompositeXY"; $BigImageRef; $SmallImageRef; $X; $Y; Combine Pictures::CompositeOp ) ]
                    • Set Variable [ $Error; Value:MBS( "GMImage.SetQuality"; $BigImageRef; 90 ) ]
                    • Set Field [ Combine Pictures::Result; MBS( "GMImage.WriteToPNGContainer"; $BigImageRef ) ]
                    • Set Variable [ $Error; Value:MBS("GMImage.Destroy";$BigImageRef) ]
                    • Set Variable [ $Error; Value:MBS("GMImage.Destroy";$SmallImageRef) ]
                    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: Combine Pictures

                            Used functions:




                            Links
                            MBS Xojo Plugins