Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...

Code Block
// 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