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

MBS FileMaker Plugin Example Databases

Calculate Text Size

All examples are included with download of MBS FileMaker Plugin.

Calculate Text Size.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
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
Calculate Text Size
6 fields defined, 12 records
Calculate Text Size

Fields

Table Name: Calculate Text Size - 6 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
TextNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      FontNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          FontSizeNormal, NumberAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              WidthNormal, NumberAuto-Enter: Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                    HeightNormal, NumberAuto-Enter: Validation:
                    • Only during data entry
                    Storage:
                    • Repetitions: 1
                    • Indexing: None
                    • Automatically create indexes as needed
                    • Index Language: German
                          WrapWidthNormal, NumberAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German

                                Layout Objects: Calculate Text Size

                                Regular Fields

                                Field Name: Calculate Text Size::Text
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                • Top: 52 pt
                                • Left: 138 pt
                                • Bottom: 100 pt
                                • Right: 524 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
                                Yes

                                Field Name: Calculate Text Size::Font
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  OnObjectSave
                                • Script: Update
                                • Modes: Browse
                                • Top: 54 pt
                                • Left: 618 pt
                                • Bottom: 76 pt
                                • Right: 871 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
                                Yes

                                Field Name: Calculate Text Size::FontSize
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  OnObjectSave
                                • Script: Update
                                • Modes: Browse
                                • Top: 78 pt
                                • Left: 618 pt
                                • Bottom: 100 pt
                                • Right: 697 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
                                Yes

                                Field Name: Calculate Text Size::Width
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                • Top: 54 pt
                                • Left: 931 pt
                                • Bottom: 76 pt
                                • Right: 1010 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
                                Yes

                                Field Name: Calculate Text Size::Height
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                • Top: 78 pt
                                • Left: 931 pt
                                • Bottom: 100 pt
                                • Right: 1010 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
                                Yes

                                Field Name: Calculate Text Size::WrapWidth
                                Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                • Top: 79 pt
                                • Left: 784 pt
                                • Bottom: 101 pt
                                • Right: 863 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
                                Yes

                                Script Hierarchy

                                Recalculate All
                                Update

                                Next Script: [Update]
                                Script NameRecalculate All
                                Run script with full access privilegesOff
                                Include In MenuYes
                                Layouts that use this script
                                  Scripts that use this script
                                    Script Definition
                                    Script Steps
                                    • Go to Record/Request/Page [ First ]
                                    • Loop
                                    • Set Field [ Calculate Text Size::Text; Calculate Text Size::Text ]
                                    • Go to Record/Request/Page [ Next; Exit after last ]
                                    • End Loop
                                    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: [Recalculate All]
                                            Script NameUpdate
                                            Run script with full access privilegesOff
                                            Include In MenuYes
                                            Layouts that use this script
                                              Scripts that use this script
                                                Script Definition
                                                Script Steps
                                                • Set Field [ Calculate Text Size::Text; TextSize ( TextFont ( Calculate Text Size::Text; Calculate Text Size::Font); Calculate Text Size::FontSize) ]
                                                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: Calculate Text Size

                                                        Used functions: