OnOLEStartDrag event (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

TOLEStartDragEvent OnOLEStartDrag (TmouseButton Button, TShiftState Shift, int X, int Y);

Delphi Syntax

OnOLEStartDrag (Button: TMouseButton; Shift: TShiftState; X, Y: Integer): TOLEStartDragEvent;

Overview

Refer to Drag and Drop

Remarks

Occurs when the drag-and-drop operation starts, and indicates whether a drop can be accepted.

To start the drag-and-drop operation:

1.

Set the EnableOLEDragMethod property to TRUE.

2.

Press the left mouse button down on the Main control that contains the image you want to drag. The OnOLEStartDrag event will occur.

Please note that only the Left mouse button is used in the drag and drop process.

See Also

Elements:

EnableOLEDragMethod property, OLEDragCursor property, OnOLECompleteDrag event, OnOLEDragOver event, OnOLEGiveFeedback event

Topics:

Raster Images: Displaying Images