Commands are used as abstraction of the soft keys and menus that are displayed on a Form. The location and the appearance of Commands may vary between the different device types. In non-touch and touch and type devices the commands appear in the MenuBar that is drawn in the bottom of the Form. In full touch devices the Commands appear in the platform menu instead of the MenuBar. The MenuBar is not displayed at all in the full touch configuration.
Options menu contains all 'normal' commands that are not directly shown on screen in softkeys, action/back buttons, or category bar. Also the default command may in some cases be shown in the Options menu.
The Context menu (currently supported in Series 40 full touch and touch and type) also deals with commands, but in this case the array of commands with the static show method is given to ContextMenu class instead of adding them to the Form. Long tap on any of the list items is the Series 40 platform way of launching the context menu, but developers can also define any other mechanism to open it.
You can add Commands to a Form with methods:
addCommand(Command cmd) addCommand(Command cmd, int offset)
The offset parameter specifies where the Command is positioned in the menu.