Selection settings.
Usage
Set_Property(OLECtrlEntID, "OLE.SelectBehavior", OptionValue)
Values
OptionValue can be set to one of the following valid options:
Value | Abbr. | Description |
---|---|---|
None | N | The user cannot select any items |
Single | S | The user can select only one item at a time. |
Multi | M | The user can select multiple items using the Shift and Control keys |
Toggle | T | The user can toggle selection on and off by clicking on items or by pressing the Spacebar |
Default: Single
Remarks
The SelectBehavior property establishes how many items the user can select. By default, users can only select one item at a time. However, you can choose to allow users to select multiple items or to prevent users from selecting any items at all.
To allow multiple selection, set this property to "Multi" or "Toggle". The "Multi" select behavior allows users to select multiple items using the Control and Shift keys. The "Toggle" select behavior allows users to toggle an item's selection by clicking on it or using the Spacebar. Set the property to "None" of you want to prevent selection altogether, or leave the property set at "Single" to allow only one selected item at a time.
Example
// Allow multiple selection Set_Property(@Window:".OLE_TREE", "OLE.SelectBehavior", "Multi")