Condition in which an item can be dragged.
Usage
Set_Property(OLECtrlEntID, "OLE.DragCondition", StringValue)
Values
StringValue can be any string meeting the following format requirements:
Syntax: Boolean Expression
Default: ""
Remarks
The DragCondition property allows you to automate which items the user is allowed to drag. You provide a specially formatted condition statement telling the control what state the item must be in to be considered draggable. When the user attempts to drag an item, the SRP Tree Control compares the item to the given condition and if true, allows the drag.
This property works only if the ItemDraggable 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 drag only items with no children Set_Property(@Window:".OLE_TREE", "OLE.DragCondition", "Not(HasChildren)")