To create or edit a command, open the form definition window for the form where the command will be attached. Click the Commands tab to display the list of commands that have been defined for the form. Click New to create a new command, or select a command and click Open to edit an existing command definition. The Command Definition window will appear.
Two names are required for a command. The Command Name is the name used in scripts, while the Display Name is the name displayed when the command is used in a menu or on a toolbar.
You can define an access key for the command by placing an ampersand (&) in the display name. The ampersand won’t be displayed in the command name at runtime. Instead, the character immediately following the ampersand will be underlined.
When a command is used on a toolbar, it will display a tooltip if one is provided.
The shortcut for the command is a combination of a modifier key (Control, Alt, or Shift) and an alphanumeric or function key.
A command can open a form, execute a script, open a data list, act as a list of other commands.
If the command will be used on a toolbar, you may want to specify native pictures or icons to use. One image will be displayed in the normal state, and the other will be displayed when the command is in the checked state. For best display, images should be 20 pixels by 20 pixels.
You can specify whether the command will appear as text, as an image, or with both the text and image.
You can specify the default size and location of a command used in the ribbon for a data list. You can also specify the type of action a script command displayed on a ribbon will be performing so the command will be processed correctly.
The command will appear in the list of commands in the Form Definition window.