Conditions in which an item will display a close button.

Usage

Set_Property(OLECtrlEntID, "OLE.CloseButtonConditions", Condition)

Values

Condition must be an expression that determines whether or not a close button is visible:

Remarks

The CloseButtonConditions property allows you to automate which items display a close button. You provide a specially formatted condition statement telling the control what state the item must be in to show the check box. When the SRP Tree Control displays an item, it compares the item to the given condition and if true, displays the close button. Treat it like an IF statement. If the condition is true, then the close button will appear.

This property is overridden by the ItemCloseButton property value. In other words, the conditions are only evaluated as long as the ItemCloseButton property is 0.

For more information on using conditions, see the Conditions tutorial in the Using SRP OLE Tree section.

Example

// Display close buttons for items with no children
Set_Property(@Window:".OLE_TREE", "OLE.CloseButtonConditions", "Not(HasChildren)")

See Also

CloseButtonBehavior, CloseButtonColors, ItemCloseButton, and DefCloseButton

  • No labels