Navigator > Setup > Form Designer > Code tab
Use the Form Designer Code tab to write code to determine how the form will run. You can enter MaxBasic code, enter the value of an expression property, or select an item from a menu to insert at the pointer position. You can construct statements and expressions. See also Script Editor Shortcut Keys for shortcut combinations. You can also insert Automated code snippets in the Code tab, see Automated Snippets.
To access the Code Editor Context Menu, right-click in the script editor window, or press Shift+F10.
You can write sub routines, that can then be triggered by Component Events.
To change component font properties using MaxBasic, see Font Properties.
|
Operators |
Lists all MaxBasic operators. |
|
|
Objects |
Lists the objects and components available from the code. Each components on the form will be listed here, and you can select from each component's fields and methods. When you select a property it will appear in the code. The following objects are available for all forms in Form Designer:
|
|
|
Functions |
MaxBasic functions and additional functions. When you select a function that expects arguments, the parentheses and commas for the arguments are shown and the pointer is positioned for the first argument, for example, |
|
|
Automated |
Lists the Automated Objects available. |
|
|
Procedures |
Lists Function and Sub procedures defined in or imported into the script. Use |
|
|
Help |
Access related Help topics. |
|
|
Snippet |
Insert a code Snippet. Snippets are listed alphabetically, and the first line of each snippet is displayed. |
|
Buttons |
|||
|
Check Code |
Validates the code to ensure it compiles correctly. |
|
|
Print |
Print the code. |
|
|
Breakpoint |
Set a code breakpoint on the current line. Click again to toggle to clear the breakpoint. You can also click to the right of a line to set or clear a breakpoint. Hover the mouse over a breakpoint, then right-click to make a breakpoint unavailable, or access the Breakpoint Properties. If a condition has been set for a breakpoint, it will be shown when you hover over the breakpoint. |
|