WebMenuItem.Enabled

From Xojo Documentation

Property (As Boolean )
aWebMenuItem.Enabled = newBooleanValue
or
BooleanValue = aWebMenuItem.Enabled

New in 2011r2

Supported for all project types and targets.

If True, the menu item is enabled.

Example

Add a contextual menu to a Label with one of the menu items disabled. This code is in the Shown event handler of a WebLabel:

Var base As New WebMenuItem

Var loadMenu As New WebMenuItem("Load")
base.Append(loadMenu)

Var saveMenu As New WebMenuItem("Save")
saveMenu.Enabled = False
base.Append(saveMenu)

Me.ContextualMenu = base