EnableOLEDragMethod property (ImageList Control)
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 ImageList Control. Possible values are:
Setting |
Description |
TRUE |
Enables drag-and-drop operation. |
FALSE |
Disables drag-and-drop operation. |
If EnableOLEDragMethod is TRUE:
an OnOLEStartDrag event will occur when the drag process begins,
an OnOLEDragOver event will occur while the image is being dragged over the ImageList control, and
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 ImageList control to determine the visual feedback for the drag-and-drop operation.
The drag-and-drop operation will paste the selected image to another ImageList control.
Note: |
You have to set the AllowSelection property to ALLOWSELECTION_SINGLE before starting the drag/drop operation. |
See Also
Elements: |
OLEDragCursor property, OnOLEStartDrag event, OnOLECompleteDrag event, OnOLEDragOver event, OnOLEGiveFeedback event, AllowSelection property |
Topics: |