OLECompleteDrag Event
The OLECompleteDrag event occurs when a combo is the source component of a drag/drop operation.
TDBCombo_OLECompleteDrag (Effect As Long)
Arguments
Effect is a long integer set by the source 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). The possible values of Effect are as follows:
|
0 - vbDropEffectNone |
Drop target cannot accept the data or the drop operation was canceled. |
|
1 - vbDropEffectCopy |
Drop results in a copy of data from the source to the target. The original data is unaltered by the drag operation. |
|
2 - vbDropEffectMove |
Drop results in a link to the original data being created between drag source and drop target. |
Event applies to TDBCombo control.
This event informs the combo that a drag action was either performed or canceled by the target control.
The OLECompleteDrag event is the final event to be called in an OLE drag/drop operation. Based on the value returned, the source combo control can then determine the appropriate action it needs to take. For example, if the object was moved into the target (2 - vbDropEffectMove), the source combo control needs to delete the object from itself after the move.
See Also