Establishes whether or not the user can select an item.

Usage

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

Values

[True | False]

Default: True

Indices

IndexDescription
keyAn item's unique key

Remarks

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.

Example

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

  • No labels