Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

OLECompleteDrag Event, SftTree Object

The OLE drag & drop operation has ended.

Syntax

VB.NETPrivate Sub object_OLECompleteDrag(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.OLECompleteDrag
VBPrivate Sub object_OLECompleteDrag(Effect As Long)
C#.NETvoid object_OLECompleteDrag(object sender, EventArgumentType e);
VC++void OnOLECompleteDragobject(long* Effect);
CHRESULT OnOLECompleteDragobject(long* Effect);

object

A SftTree object.

Effect

A value 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.

Note: Only Visual Basic offers the predefined constants vbDropEffectNone, etc. When using other languages, the constants have to be defined explicitly by the application.

Comments

The OLECompleteDrag event occurs when the OLE drag & drop operation has ended.

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.

See Also SftTree Object | Object Hierarchy


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