Using and Administering

Creating Your Own Pulldown Menus

You can add a pulldown menu to both the Jobs window and the Machines window.

To add a pulldown menu to the Jobs window, in the Xloadl file:

  1. Set userJobPulldown to True
  2. Set userJob.labelString to the name of your menu.
  3. Fill in the appropriate information for your first menu item, userJob_Option1
  4. To define more menu items, fill in the appropriate information for userJob_Option2, userJob_Option3, and so on. You can define up to ten menu items.

For more information, refer to the comments in the Xloadl file.

To add a pulldown menu to the Machines window, in the Xloadl file:

  1. Set userMachinePulldown to True
  2. Set userMachine.labelString to the name of your menu.
  3. Fill in the appropriate information for your first menu item, userMachine_Option1
  4. To define more menu items, fill in the appropriate information for userMachine_Option2, userMachine_Option3, and so on. You can define up to ten menu items.

Example - Creating a New Pulldown

Suppose you want to create a new menu bar item containing a selection which executes the ping command against a machine you select on the Machines window.

Figure 34. Creating a New Pulldown Menu

*userMachinePulldown: True
*userMachine.labelString: Commands
*userMachine_Option1: True
*userMachine_Option1_command: ping -c1
*userMachine_Option1.labelString: ping
*userMachine_Option1_parameter: True
*userMachine_Option1_output: Window

The Xloadl definitions shown in the Figure 34 create a menu bar item called "Commands". The first item in the Commands pulldown menu is called "ping". When you select this item, the command ping -c1 is executed, with the machine you selected on the Machines window passed to this command. Your output is displayed in an informational window.

For more information, refer to the comments in the Xloadl file.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]