UserMenu.Item(Key_id).Enabled

Object type

Property

Syntax

UserMenu.Item(Key_id).Enabled = Status

Status = UserMenu.Item(Key_id).Enabled

Description

Makes the user menu function softkeys 1 to 10 (Key_id) enabled/disabled. The softkey label disabled is displayed in grey color and its softkey cannot be pressed.

Variable

Parameter

Status

Description

Enabled/disabled for the user menu function softkey

Data type

Boolean type (Boolean)

Range

Select from the following.

  • True or -1

Makes the softkey enabled.

  • False or 0

Makes the softkey enabled.

Preset value

True or -1

For information on the variable (Key_id), see UserMenu.Item.Caption.

Examples

Dim KeyEna As Boolean
UserMenu.Item(10).Enabled = False
KeyEna = UserMenu.Item(10).Enabled

Related objects

UserMenu.Press

Equivalent key

No equivalent key is available on the front panel.