Versions Compared

Key

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

...

The ItemSelectable property establishes whether or not an item can be selected by the user. If disabled, then the user cannot select the item by clicking or by using the keyboard. Nor will you be able use the SelectedItems property to select the item programmatically.

This property can be useful when you plan to use the tree control like a menu or shortcut bar.

Use the DefSelectable property to set the default selectable setting for new items.

...

Code Block
// Prevent the user from selecting the item whose key is "Item1" 
Set_Property(@Window:".OLE_TREE", "OLE.ItemSelectable[Item1]", 0) 

// Make all items selectable 
Set_Property(@Window:".OLE_TREE", "OLE.ItemSelectable[All]", 1)

See Also

ItemItemSelectedDefSelectableSelectedItems