Top
PowerCOBOL V11.0 User's Guide
FUJITSU Software

4.10.4 Editing Menu Item Properties

When you have created a menu item you edit its properties in the Menu Properties dialog. To display the Menu Properties dialog either double click the menu item, or right-click the menu item and select Properties from the pop-up menu.

Figure 4.18 Menu properties.

The MenuItem properties are:

Caption:

Specifies the character string to display in the menu item.

If you want to set an access key precede the character with "&". For example, to make "O" the access key for the Open menu function you would enter "&Open" in the Caption field.

Name:

Contains the name of the menu item.

ShortcutKey:

Sets the key to use as a shortcut key.

Select None if you do not want to assign a shortcut key.

Note that you cannot assign shortcut keys to the top-level menu items nor to popup menu items.

The shortcut keys you can specify are:
[F1] to [F24],
[Del],
[Ctrl+A] to [Ctrl+Z],
[Ctrl+F1] to [Ctrl+F24],
[Shift+F1] to [Shift+F24].

Note:

  1. The keys you can use as function keys (F1 to F24) depend on the Windows system and model. Therefore confirm if you can use the function key you want (especially F13 and above) on the Windows system and model you are using.

  2. Keys that are assigned to CommandButton controls should not be used for menu items.

Kind:

Do not use the Kind function with this release. It is intended to support merging of menus but there are limitations that prevent it being useful.

Visible:

Specifies whether the menu item is visible.

When an item is not visible other menu items are shifted so that there is no gap in the menu. Any sub-menus of the menu item are also not visible or accessible.

Enabled:

Specifies whether to enable the menu items. The menu items are displayed in gray when they are disabled.

Check Mark:

Specifies whether to display a check mark on the left of the menu item. You cannot specify check marks for top-level menu bar items.

Separator:

Specifies whether this menu item is a separator item. If checked, all other properties are ignored.

If the items following the separator are not visible, so that the separator would become the last item in the menu, the separator is also made not visible.

You cannot specify this property for top-level menu bar items.

Menu Break:

Specifies whether or not the menu item starts a new line or column.

Not MenuBreak - menu item follows the previous menu item.

MenuBreak - menu item starts a new line or column.

MenuBarBreak - for vertical menus specifies that the menu item starts a new column with a bar separating the columns. For items on the menu bar this is the same as MenuBreak.