Expansion automation settings.

Usage

Set_Property(OLECtrlEntID, "OLE.ExpandBehavior", OptionValue)

Values

OptionValue can be set to one of the following valid options:

ValueAbbr.Description
NoneNThe user must use expansion buttons or the keyboard to toggle the expanded state
SingleSThe user can expand and collapse by single clicking on an item
DoubleDThe user can expand and collapse by double clicking on an item

Default: Double

Remarks

The ExpandBehavior property establishes how the control chooses when to expand or collapse tree items. By default, double clicking a tree item will toggle its expanded state. However, you can choose to allow single clicks do this or to prevent mouse clicks from toggling the expanded state at all. Simply set this property to "Single" or "None" to achieve the respective results, or leave it set to "Double" to allow double clicks to expand and collapse.

Regardless of this property's value, the user can still expand and collapse items using the expansion buttons or the keyboard.

Example

// Turn off expansion automation 
Set_Property(@Window:".OLE_TREE", "OLE.ExpandBehavior", "None")

See Also

CheckBehaviorDropBehaviorEnterBehaviorSelectBehavior

  • No labels