Returns or sets a value that determines how a target component handles drop operations.
Object.OLEDropMode [ = enOLEDropMode ]
The OLEDropMode property syntax has the following parts:
Name |
Type |
Description |
Object |
AForm |
AForm object |
enOLEDropMode |
enumAFormOLEDropMode |
An integer which specifies the method by which a component handles OLE drag/drop operations. |
Name |
Value |
Description |
aformOLEDropModeNone |
1 * |
None. The target component does not accept OLE drops and displays the No Drop cursor. |
aformOLEDropModeManual |
2 |
Manual. The target component triggers the OLE drop events, allowing the programmer to handle the OLE drop operation in code. |
aformOLEDropModeAutomatic |
3 |
Automatic. The target component automatically accepts OLE drops if the DataObject object contains data in a format it recognizes. No mouse or OLE drag/drop events on the target will occur when OLEDropMode is set to aformOLEDropModeAutomatic. |
Note: The target component inspects what is being dragged over it in order to determine which events to trigger: the OLE drag/drop events or the ATEasy drag/drop events. There is no collision of components or confusion about which events are fired, since only one type of object can be dragged at a time.
The following statement changes the AForm OLEDropMode to automatic:
frm1.OLEDropMode=aformOLEDropModeAutomatic