Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.OLECompleteDrag Event

Source object is notified that the OLE drag & drop operation is ending.

Syntax

VBPrivate Sub object_OLECompleteDrag(Effect As Long)

object

A SftTabs object.

Effect

A Long variable set by the target object identifying the action that has been performed, thus allowing the source to take appropriate action if the component was moved (such as the source deleting data if it is moved from one component to another).

EffectValueDescription
vbDropEffectNone0Drop target cannot accept the data.
vbDropEffectCopy1Drop results in a copy of data from the source to the target. The original data is unaltered by the drag operation.
vbDropEffectMove2Drop results in data being moved from the drag source to the drop source. The drag source should remove the data from itself after the move.

Comments

The OLECompleteDrag event occurs when source object is notified that the OLE drag & drop operation is ending.

The OLECompleteDrag event is the final event to be called in an OLE drag & drop operation. This event informs the source component of the action that was performed when the object was dropped onto the target component. The target sets this value through the Effect parameter of the OLEDragDrop event. Based on this, the source can then determine the appropriate action it needs to take. For example, if the object was moved into the target (vbDropEffectMove), the source needs to delete the object from itself after the move.

Example

See Reorder Sample

See Also SftTabs Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.