Several commands are available with Imagenation. For a list, click Command IDs. You can also add other, external commands for use in Imagenation.
To create an external command 4097, and place it in the user interface:
1. Call [AddExternalCommandEx(4097, "MenuLabel", <"ToolTip">, <"statBarMsg">)] to add the command and its user interface text, including its name and, optionally, its Status Bar message, and ToolTip.
2. Set up the NotifyIM -- MenuIntercept XTYP_ADVSTART notification to receive an advise when an Imagenation user chooses a command targeted for interception.
3. Call InterceptMenuAction(4097, 1) to intercept the command when it is chosen.
4. Add the new command to an Imagenation menu with AddMenuItem(menuID, 4097, menuItemType, "pRelMenuItem", relPsn).
5. Refresh the user interface by calling RefreshMenus.
The external command is in the user interface, and the client application is responsible for enabling and disabling the command with SetMenuStatus(4097, 1), and for carrying out an action when the command is chosen.
If required, you can add an external command to a button bar. For topics dealing with buttons, see Defining button bars. (Note that you can also use AddExternalCommand to add a command that will be added to a button bar only, and not to a menu.)
See also