Commands

Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

The key object in ProfAuto is the CExtAutoCommand command wrapper. Each item in the menu or button in the toolbar is associated with a command. Besides push buttons and buttons with submenus in toolbars, popup menu items, text/combo fields, color pickers, and scroll bar/slider items are also assigned commands. Some particular command may be assigned to different objects, so, for example, by clicking a button in a toolbar or selecting a menu item in a menu, the very same command is executed. The command object has a set of properties and, changing these properties affects all toolbar and menu bar items corresponding to this command.

Before adding any custom button to a toolbar or popup menu, you need to assign an existing command to it. If you remove a command object, the corresponding toolbar/menu items are also removed automatically. Each command object is uniquely identified by the basic command identifier with a numeric value in the range of 1 to 65535. You may also identify the command by name. Such property is treated as an internal command name and may not be equal to the command text in the menu or toolbar.