Enables or disables an item.

Usage

Set_Property(OLECtrlEntID, "OLE.ItemEnabled[key]", Boolean)

Values

[True | False]

Default: True

Indices

IndexDescription
keyAn item's unique key

Remarks

The ItemEnabled property enables or disables an item. A disabled item cannot be selected and appears grayed out to the user. This feature is useful when you want to represent something that needs to be activated before use, such as a shortcut to another task.


 

Use the DefEnabled property to set the default enabled state for new items.

Example

// Disable the item whose key is "Item1" 
Set_Property(@Window:".OLE_TREE", "OLE.ItemEnabled[Item1]", 0) 

// Enable all items 
Set_Property(@Window:".OLE_TREE", "OLE.ItemEnabled[All]", 1)

See Also

DefEnabledItemVisible

  • No labels