Default expanded state of new items.

 

Usage

Set_Property(OLECtrlEntID, "OLE.DefExpanded", Boolean)

Values

[True | False]

Default: False

Remarks

The DefExpanded property establishes the default expanded state of new items. Setting this property will not change existing items. Instead, newly added items will take on the setting established in this property. See the ItemExpanded property for details.

This property is useful for setting whether or not your tree is fully expanded or fully collapsed when initialized.

For more information on how default properties can make you more efficient, see the Default Properties article.

Example

// Make all new items expanded by default 
Set_Property(@Window:".OLE_TREE", "OLE.DefExpanded", 1)

See Also

ItemExpandedDefExpandable

  • No labels