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

MBS FileMaker Plugin Example Databases

SyntaxColoring for Mac

All examples are included with download of MBS FileMaker Plugin.

SyntaxColoring for Mac.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts8
Value Lists1
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
dd
3 fields defined, 15 records
dd

Fields

Table Name: dd - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
SelectorNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
  • Strict validation
  • Value list: Selectors
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      TextNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ColorNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German

              Layout Objects: dd

              Regular Fields

              Field Name: dd::Selector
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 66 pt
              • Left: 6 pt
              • Bottom: 80 pt
              • Right: 97 pt
              • Anchoring: Left, Top
              Field Format:
              • Drop-down List
              • Display values from: Selectors
              • Auto-complete using value list
              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

              Field Name: dd::Text
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 66 pt
              • Left: 102 pt
              • Bottom: 80 pt
              • Right: 355 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
              Yes

              Field Name: dd::Color
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 66 pt
              • Left: 360 pt
              • Bottom: 80 pt
              • Right: 547 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
              Yes

              Group Buttons

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Enable
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 6 pt
              • Left: 18 pt
              • Bottom: 31 pt
              • Right: 115 pt
              • Anchoring: Left, Top
              Perform Script [ “EnableSyntaxColoring” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Disable
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 6 pt
              • Left: 132 pt
              • Bottom: 31 pt
              • Right: 229 pt
              • Anchoring: Left, Top
              Perform Script [ “DisableSyntaxColoring” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Apply All
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 6 pt
              • Left: 246 pt
              • Bottom: 31 pt
              • Right: 343 pt
              • Anchoring: Left, Top
              Perform Script [ “ApplyAll” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Show Rules in use
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 6 pt
              • Left: 363 pt
              • Bottom: 31 pt
              • Right: 478 pt
              • Anchoring: Left, Top
              Perform Script [ “ShowRules” ]

              Scripts:


              Value Lists

              Value List NameSourceValuesOn Layouts
              SelectorsCustom
              • ScriptStep, Function, Variable, Formula

              Script Hierarchy

              Test
              EnableSyntaxColoring
              DisableSyntaxColoring
              MakeSetVariableRed
              RemoveSetVariableRed
              ApplyAll
              ShowRules
              ShowColor

              Next Script: [EnableSyntaxColoring]
              Script NameTest
              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 [ ]
                  • Set Variable [ $r; Value:1 ]
                  • If [ ]
                  • Else If [ ]
                  • Else
                  • End If
                  • Loop
                  • Exit Loop If [ ]
                  • 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: [Test]Next Script: [DisableSyntaxColoring]
                                Script NameEnableSyntaxColoring
                                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: [EnableSyntaxColoring]Next Script: [MakeSetVariableRed]
                                                Script NameDisableSyntaxColoring
                                                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: [DisableSyntaxColoring]Next Script: [RemoveSetVariableRed]
                                                                Script NameMakeSetVariableRed
                                                                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: [MakeSetVariableRed]Next Script: [ApplyAll]
                                                                                  Script NameRemoveSetVariableRed
                                                                                  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: [RemoveSetVariableRed]Next Script: [ShowRules]
                                                                                                    Script NameApplyAll
                                                                                                    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 ]
                                                                                                      • Set Variable [ $r; Value:MBS("SyntaxColoring.Clear") ]
                                                                                                      • Loop
                                                                                                      • Set Variable [ $r; Value:MBS("SyntaxColoring.AddTag"; dd::Selector; dd::Text; dd::Color) ]
                                                                                                      • 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: [ApplyAll]Next Script: [ShowColor]
                                                                                                              Script NameShowRules
                                                                                                              Run script with full access privilegesOff
                                                                                                              Include In MenuYes
                                                                                                              Layouts that use this script
                                                                                                              Scripts that use this script
                                                                                                                Script Definition
                                                                                                                Script Steps
                                                                                                                • Show Custom Dialog [ Title: "All Rules"; Message: MBS("SyntaxColoring.GetTags"); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                                                                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: [ShowRules]
                                                                                                                              Script NameShowColor
                                                                                                                              Run script with full access privilegesOff
                                                                                                                              Include In MenuYes
                                                                                                                              Layouts that use this script
                                                                                                                                Scripts that use this script
                                                                                                                                  Script Definition
                                                                                                                                  Script Steps
                                                                                                                                  • Show Custom Dialog [ Title: "All Rules"; Message: MBS("SyntaxColoring.GetTag"; "*<Missing Field>*"); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                                                                                  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: SyntaxColoring for Mac

                                                                                                                                                Used functions: