Spread 8.0 Documentation
OLEStartDrag, Script OLEStartDrag Events
Support Options
ActiveX Reference > ActiveX Events > OLEStartDrag, Script OLEStartDrag Events

Glossary Item Box

OLEStartDrag, Script OLEStartDrag Events


See Also

Applies To

fpSpread and fpSpreadPreview controls

Description

Occurs when an OLE drag-drop operation is initiated either manually or automatically.

Syntax

Visual Basic

Sub fpSpread_OLEStartDrag(Data As fpDataObject, AllowedEffects As Long)

Sub fpSpreadPreview_OLEStartDrag(Data As fpDataObject, AllowedEffects As Long)

Note: The ScriptOLEStartDrag 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 parameters are available:

Parameter Description
Data An fpDataObject object containing formats and possibly data the object being dropped will provide. If no data is contained in the fpDataObject, it will be provided when the control calls the GetData method.
AllowedEffects Identifies the actions the source component supports
Using the Or operator, combine any of the following values:
Value Description
0 fpOLEDropEffectNone
1 fpOLEDropEffectCopy
2 fpOLEDropEffectMove
-2147483648 fpOLEDropEffectScroll

Remarks

This event is initiated as soon as the control's OLEDrag method is invoked.

If a value is not assigned to the Data parameter then the GetData method of the fpDataObject initiates the OLESetData event to obtain the data.

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 ScriptOLEStartDrag event. ScriptOLEStartDrag event parameters that are not passed "ByVal" are declared as variants.

See Also

ScriptEnhanced property

OLECompleteDrag, OLEGiveFeedback, OLESetData event

GetData, OLEDrag method

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