Expands or collapses an item.
Usage
Set_Property(OLECtrlEntID, "OLE.ItemExpanded[key]", Boolean)
Values
[True | False]
Default: False
Indices
Index | Description |
---|---|
key | An item's unique key |
Remarks
The ItemExpanded property expands or collapses an item. An expanded item will show all its children. Use this property to programmatically change the expanded state of an item. Use the ItemExpandable property if you wish to limit the user's ability to expand and collapse the item.
Use the DefExpanded property to set the default expanded state for new items.
Example
// Collapse the item whose key is "Item1" Set_Property(@Window:".OLE_TREE", "OLE.ItemExpanded[Item1]", 0) // Expand all items Set_Property(@Window:".OLE_TREE", "OLE.ItemExpanded[All]", 1)