Spread 8.0 Documentation
OLECompleteDrag, ScriptOLECompleteDrag Events
Support Options
ActiveX Reference > ActiveX Events > OLECompleteDrag, ScriptOLECompleteDrag Events

Glossary Item Box

OLECompleteDrag, ScriptOLECompleteDrag Events


See Also

Applies To

fpSpread and fpSpreadPreview controls

Description

Occurs at the source control after an OLE drag-drop operation has been completed or canceled.

Syntax

Visual Basic

Sub fpSpread_OLECompleteDrag(Effect As Long)

Sub fpSpreadPreview_OLECompleteDrag(Effect As Long)

Note: The ScriptOLECompleteDrag event uses the same syntax except event parameters that are not passed "ByVal" are declared as variants. For more information on Script events, see Scripting Environment Usage.

Parameter

The following parameter is available:

Parameter Description
Effect Identifies the action that was performed
Can be one of the following values:
Value Description
0 fpOLEDropEffectNone
1 fpOLEDropEffectCopy
2 fpOLEDropEffectMove
-2147483648 fpOLEDropEffectScroll

Remarks

This is the last event to occur in an OLE drag-drop operation.

The Effect parameter value is passed in from the target control's OLEDragDrop event. If the Effect parameter contains a value of 0, the drag-drop operation did not complete successfully.

You can use the OLECompleteDrag event to delete data from the source control if the Effects parameter contains a value of 2 (data was moved).

Note: This event will occur if you use the fpSpread or fpSpreadPreview control in a scripting environment (for example, Microsoft's Visual InterDev or Internet Explorer) or a non-scripting environment. However, if you want to use the fpSpread or fpSpreadPreview control in a scripting environment and you want to change any parameter that is not passed "ByVal", you must set the ScriptEnhanced property to True and use the ScriptOLECompleteDrag event. ScriptOLECompleteDrag event parameters that are not passed "ByVal" are declared as variants.

See Also

ScriptEnhanced property

OLEDragDrop, OLEGiveFeedback, OLESetData, OLEStartDrag events

OLEDrag method

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.