OnOLEStartDrag event (ImageList Control)
|
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. If the drag and drop operation fails, this event will not be generated.
To start the drag-and-drop operation:
|
1. |
Set the EnableOLEDragMethod property to TRUE. |
|
2. |
Set the AllowSelection property to ALLOWSELECTION_SINGLE. |
|
3. |
Select an image in this Image List control. |
|
4. |
Press the left mouse button down on the same Image List Control and drag the selected image. 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, AllowSelection property |
|
Topics: |