AddCommand SEToolBar

<< Click to Display Table of Contents >>

Navigation:  SEUIXP Classes for X# > Classes > SEToolBar >

AddCommand SEToolBar

Previous pageReturn to chapter overviewNext page


Registers a new command event to the toolbar.

This gives you the possibility to create toolbars without a corresponding menu.



METHOD AddCommand(nMenuItemID, symCommand) CLASS SEToolBar




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.


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.