EnableOLEDragMethod property (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

bool EnableOLEDragMethod;

Delphi Syntax

EnableOLEDragMethod: Boolean;

Overview

Refer to Drag and Drop.

Remarks

(Persistent property, available at design time) Enables or disables the OLE drag and drop operation in the Main Control. Possible values are:

Setting

Description

TRUE

Enables drag-and-drop operation.

FALSE

Disables drag-and-drop operation.

If EnableOLEDragMethod is TRUE:

image\sqrblit.gif an OnOLEStartDrag event will occur when the drag process begins,

image\sqrblit.gif an OnOLEDragOver event will occur while the image is being dragged over the Main control, and

image\sqrblit.gif an OnOLECompleteDrag event will occur when the dragging process is over and the image is dropped.

In addition, an OnOLEGiveFeedback event will occur while the image is being dragged over the Main control to determine the visual feedback for the drag-and-drop operation.

The drag-and-drop operation will paste the dragged image to another Main Control.

See Also

Elements:

OLEDragCursor property, OnOLEStartDrag event, OnOLECompleteDrag event, OnOLEDragOver event, OnOLEGiveFeedback event

Topics:

Raster Images: Displaying Images