When it is launched
The event occurs when calling a user command (provided that a corresponding item is added to the main menu or on the toolbar). User command identifiers can be represented in the form of CI_UserCommand + <non-negative integer>.Parameters
| Name | Type | Access | Description |
|---|---|---|---|
| CommandId | TCommandID | Read/write | The identifier of the user command |
| Context | IMainWindow | Read/write | The main window of the application |
The sample code below demonstrates how to add a menu item for a user command with a command identifier CI_UserCommand + 1.
