Slick V3.3 manual Editing Menus, Defining Menu Item Aliases, Enabling/Disabling Menu Items

Models: V3.3

1 568
Download 568 pages 2.03 Kb
Page 522
Image 522

Using the ISPF and XEDIT Emu-

lations

Editing Menus

To select a menu for editing, from the main menu click Macro Menus (or use the open_menu com- mand). Select the menu to edit from the list, then click Open. The Menu Editor will be displayed. See Menu Editor Dialog for a list of the available options.

Defining Menu Item Aliases

The Menu Item Alias dialog box allows you to define aliases (which are similar commands) for the com- mand that is being executed. This dialog box can be accessed by clicking the Alias button on the Menu Editor. Enter each alias command on a separate line. If one of the alias commands are bound to a key, that key name will be displayed to the right of the menu item. For example, the e and edit commands are absolutely identically in function except that the e command requires fewer characters to type. The gui_open command is identical to the edit command except that it prompts the user with a dialog box, whereas the edit command prompts for files on the command line. These two examples illustrate the best reasons for using aliases.

Enabling/Disabling Menu Items

SlickEdit® Core has some attributes for enabling/disabling predefines that you can specify for any com- mand. When these predefined auto-enabling attributes are not enough, you need to implement a callback which determines the enable or disable state of the command. See the Slick-C®Macro Programming Guide for information on enabling and disabling menu items with your own callback.

The Auto Enable Properties dialog box is used for these settings, and can be accessed from the main menu by clicking Macro Menus. When the Open Menu dialog box is displayed, click New to display the Menu Editor. Click the Auto Enable button, and the Auto Enable Properties dialog is displayed.

For descriptions of the options on this dialog, see Auto Enable Properties Dialog.

500

Page 522
Image 522
Slick V3.3 Editing Menus, Defining Menu Item Aliases, Enabling/Disabling Menu Items, Using the Ispf and Xedit Emu Lations