Establishes whether or not an item can be a drop target.

Usage

Set_Property(OLECtrlEntID, "OLE.ItemDroppable[key]", OptionValue)

Values

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

ValueAbbr.Description
DefaultDUse the DropCondition property to decide
AlwaysAThe item can be a drop target
NeverNThe item cannot be a drop target

Default: Default

Indices

IndexDescription
keyAn item's unique key

Remarks

The ItemDroppable property can be used to establish whether or not an item is can be a drop target, i.e., an item upon which the user can drop other items. By default, the value is set to "Default", which means that the DropCondition property will determine whether or not the item can be a drop target. However, if you want to make the item droppable regardless of the DropCondition property, then set this property to "Always". Likewise, set this property to "Never" to ensure that the user will never be able to drop other items on this one.

Use the DefDroppable property to set the default droppable value for new items.

Example

// Make Item1 a permanent drop target 
Set_Property(@Window:".OLE_TREE", "OLE.ItemDroppable[Item1]", "Always") 

// Let the DropCondition property decide whose droppable 
Set_Property(@Window:".OLE_TREE", "OLE.ItemDroppable[All]", "Default")

See Also

DefDroppableItemDraggableDropCondition

  • No labels