ComponentOne True DBInput Pro 8.0
OLEDragMode Property (TDBDate)

Sets/returns whether the component or the programmer handles an OLE drag/drop operation. When OLEDragMode is set to 0-Manual, you must call the OLEDrag method to start dragging, which then triggers the OLEStartDrag event.

Syntax

control.OLEDragMode= value

Read/Write at run time and design time.

Values

Design Time

Run Time

0 - Manual (Default)

dbiOLEDragManual

1 - Automatic

dbiOLEDragAutomatic

Remarks

When OLEDragMode is set to 1-Automatic, the source component fills the DataObject object with the data it contains and sets the effects parameter before initiating the OLEStartDrag event (as well as the OLESetData and other source-level OLE drag/drop events) when the user attempts to drag out of the control. This gives you control over the drag/drop operation and allows you to intercede by adding other formats, or by overriding or disabling the automatic data and formats using the Clear or SetData methods.

If the source's OLEDragMode property is set to Automatic, and no data is loaded in the OLEStartDrag event, or after effects is set to 0, then the OLE drag/drop operation does not occur.

If the DragMode property of a control is set to 1- Automatic, the setting of OLEDragMode is ignored, because regular Visual Basic drag and drop events take precedence.

See Also

OLEDropMode Property (TDBDate)

OleDrag Method (TDBDate)

OLEStartDrag Event (TDBDate)

OLESetData Event (TDBDate)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback