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

MBS FileMaker Plugin Example Databases

FontWidth

All examples are included with download of MBS FileMaker Plugin.

FontWidth.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts4
Value Lists3
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
FontWidth
8 fields defined, 3 records
FontWidth

Fields

Table Name: FontWidth - 8 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
TextFieldNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      FieldLengthNormal, NumberAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          TextRecalc ANormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              TextRecalc BNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  FontNameNormal, 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
                          FontStyleNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              FontNameWithStyleCalculated, TextCalculation: Auto-Enter:
                              • Always evaluate
                              Storage:
                              • Repetitions: 1
                              • Do not store calculation results
                              • Index Language: German

                                  Layout Objects: FontWidth

                                  Regular Fields

                                  Field Name: FontWidth::TextField
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 287 pt
                                  • Left: 266 pt
                                  • Bottom: 312 pt
                                  • Right: 516 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: FontWidth::FieldLength
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 397 pt
                                  • Left: 266 pt
                                  • Bottom: 418 pt
                                  • Right: 373 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: FontWidth::TextRecalc A
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 538 pt
                                  • Left: 266 pt
                                  • Bottom: 561 pt
                                  • Right: 366 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: FontWidth::FontName
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 95 pt
                                  • Left: 266 pt
                                  • Bottom: 116 pt
                                  • Right: 519 pt
                                  • Anchoring: Left, Top
                                  Field Format:
                                  • Drop-down List
                                  • Display values from: FontName
                                  • Include "Edit..." item to allow editing of value list
                                  • Auto-complete using value list
                                  • Include arrow to show and hide list
                                  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: FontWidth::FontSize
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 118 pt
                                  • Left: 266 pt
                                  • Bottom: 139 pt
                                  • Right: 345 pt
                                  • Anchoring: Left, Top
                                  Field Format:
                                  • Drop-down List
                                  • Display values from: Size
                                  • Include "Edit..." item to allow editing of value list
                                  • Include arrow to show and hide list
                                  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: FontWidth::FontStyle
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 141 pt
                                  • Left: 266 pt
                                  • Bottom: 162 pt
                                  • Right: 519 pt
                                  • Anchoring: Left, Top
                                  Field Format:
                                  • Drop-down List
                                  • Display values from: Style
                                  • Include "Edit..." item to allow editing of value list
                                  • Auto-complete using value list
                                  • Include arrow to show and hide list
                                  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: FontWidth::TextField
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 324 pt
                                  • Left: 266 pt
                                  • Bottom: 346 pt
                                  • Right: 366 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: FontWidth::FontNameWithStyle
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 168 pt
                                  • Left: 266 pt
                                  • Bottom: 189 pt
                                  • Right: 519 pt
                                  • Anchoring: Left, Top
                                  Field Format:
                                  • Edit Box
                                  Field Behavior:
                                  • Touch keyboard type: Default for Data Type
                                  • Go to next field using: Tab key
                                  Yes

                                  Field Name: FontWidth::TextField
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 251 pt
                                  • Left: 266 pt
                                  • Bottom: 275 pt
                                  • Right: 766 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: FontWidth::TextRecalc B
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 565 pt
                                  • Left: 266 pt
                                  • Bottom: 588 pt
                                  • Right: 366 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: FontWidth::TextField
                                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                  • Top: 509 pt
                                  • Left: 266 pt
                                  • Bottom: 532 pt
                                  • Right: 366 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
                                  Conditional FormattingConditionFormat
                                  1.

                                    self:normal .self
                                    {
                                    background-color: rgba(0%,72.9412%,98.4314%,1);
                                    }
                                    self:normal .icon
                                    {
                                    -fm-icon-color: rgba(0%,0%,0%,0);
                                    }

                                  Buttons

                                  Button PropertiesCoordinatesScript/Script Step
                                    Type:
                                  • Text: recalc
                                  • Top: 109 pt
                                  • Left: 26 pt
                                  • Bottom: 141 pt
                                  • Right: 133 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “Recalc ALL” ]

                                  Scripts:


                                  Button PropertiesCoordinatesScript/Script Step
                                    Type:
                                  • Text: recalc
                                  • Top: 258 pt
                                  • Left: 26 pt
                                  • Bottom: 290 pt
                                  • Right: 133 pt
                                  • Anchoring: Left, Top
                                  Perform Script [ “Recalc ALL” ]

                                  Scripts:


                                  Popover Buttons

                                  Popover Button PropertiesCoordinates
                                    Type:
                                  • Text: Info
                                  • Top: 90 pt
                                  • Left: 838 pt
                                  • Bottom: 122 pt
                                  • Right: 929 pt
                                  • Anchoring: Left, Top
                                  Popover PropertiesCoordinates
                                    Show Title Bar:
                                  • Yes
                                    Title:
                                  • "Info"
                                    Position:
                                  • Left
                                  • Top: 5 pt
                                  • Left: 209 pt
                                  • Bottom: 359 pt
                                  • Right: 827 pt
                                  • Anchoring: Left, Top
                                  Popover Content
                                  Tab ControlsSlide ControlsFieldsButtonsPortalsWeb Viewer ControlsCharts

                                      Value Lists

                                      Value List NameSourceValuesOn Layouts
                                      SizeCustom
                                      • 8, 9, 10, 11, 12, 13, 14, 16, 18, 20, 24
                                      StyleCustom
                                      • , bold, italic, underline
                                      FontNameCustom
                                      • Arial, Times, Verdana

                                      Script Hierarchy

                                      Recalc ALL
                                      CalcTextWidth
                                      Recalc Output A
                                      Recalc Output B

                                      Next Script: [CalcTextWidth]
                                      Script NameRecalc ALL
                                      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 [ FontWidth::TextField; TextFont ( FontWidth::TextField ; FontWidth::FontName ) ]
                                        • Set Field [ FontWidth::TextField; TextSize ( FontWidth::TextField ; FontWidth::FontSize ) ]
                                        • Set Field [ FontWidth::TextField; TextStyleAdd ( FontWidth::TextField ; Evaluate(FontWidth::FontStyle) ) ]
                                        • Perform Script [ “CalcTextWidth” ]
                                        • Perform Script [ “Recalc Output A” ]
                                        • Perform Script [ “Recalc Output B” ]
                                        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: [Recalc ALL]Next Script: [Recalc Output A]
                                              Script NameCalcTextWidth
                                              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 [ $FieldLength; Value:MBS( "Font.CalculateTextWidth"; FontWidth::TextField; FontWidth::FontNameWithStyle; FontWidth::FontSize ) ]
                                                • Set Field [ FontWidth::FieldLength; $FieldLength ]
                                                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: [CalcTextWidth]Next Script: [Recalc Output B]
                                                        Script NameRecalc Output A
                                                        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 [ FontWidth::TextRecalc A; FontWidth::TextField ]
                                                          • Loop
                                                          • Exit Loop If [ MBS( "Font.CalculateTextWidth"; FontWidth::TextRecalc A; FontWidth::FontNameWithStyle; FontWidth::FontSize ) + 5 + 5 <= 100 ]
                                                          • Set Variable [ $len; Value:Length ( FontWidth::TextRecalc A ) ]
                                                          • Set Field [ FontWidth::TextRecalc A; Left(FontWidth::TextRecalc A; Int($len / 2)-3) & " .. " & Right(FontWidth::TextRecalc A; Int($len / 2)-3) ]
                                                          • 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: [Recalc Output A]
                                                                  Script NameRecalc Output B
                                                                  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 [ FontWidth::TextRecalc B; FontWidth::TextField ]
                                                                    • Loop
                                                                    • Exit Loop If [ MBS( "Font.CalculateTextWidth"; FontWidth::TextRecalc B; FontWidth::FontNameWithStyle; FontWidth::FontSize ) + 5 + 5 <= 100 ]
                                                                    • Set Variable [ $len; Value:Length ( FontWidth::TextRecalc B ) ]
                                                                    • Set Field [ FontWidth::TextRecalc B; Left(FontWidth::TextRecalc B ; $len -3) & " ~" ]
                                                                    • 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

                                                                            Download example: FontWidth

                                                                            Used functions: