<< Click to Display Table of Contents >> AddCommand SEToolBar |
![]() ![]() ![]() |
Purpose
Registers a new command event to the toolbar.
This gives you the possibility to create toolbars without a corresponding menu.
Prototype
METHOD AddCommand(nMenuItemID, symCommand) CLASS SEToolBar
Arguments
<nMenuItemID> |
A numeric value which is identical to a menu item id of a menu and which corresponds to the menu item id (command id) of one of the toolbar buttons. |
<symCommand> |
A symbolic value. Its meaning is identical to the event name in the menu editor. If the toolbar button with the menu item id 'nMenuItemID' is pressed an event with the name 'symCommand' is invoked. At runtime, the system will first look for a method with this name. If no method can be found, it will look for a Window or ReportQueue class. If none of these can be found, the menu selection will do nothing. |