Condition in which an item can be a drop target.

Usage

Set_Property(OLECtrlEntID, "OLE.DropCondition", StringValue)

Values

StringValue can be any string meeting the following format requirements:

Syntax: Boolean Expression

Default: ""

Remarks

The DropCondition property allows you to automate which items the user is allowed to drop onto or in between. You provide a specially formatted condition statement telling the control what state the item must be in to be considered droppable. When the user drags items over a target item, the SRP Tree Control compares the target item to the given condition and if true, shows feedback to the user indicating that the drop is valid.

This property works only if the ItemDroppable property value is set to "Default".

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

There are other properties, methods, and events necessary to implement a complete drag and drop solution. See Drag and Drop for more details.

Example

// Allow the user to drop only onto items at the root level 
Set_Property(@Window:".OLE_TREE", "OLE.DropCondition", "Level EQ 1")

See Also

ItemDroppableDragConditionDropBehaviorDropSourcesAutoDrop

  • No labels