OLE drag&drop event. It occurs when the user drags the mouse pointer into the editor. Indicates whether a drop can be accepted, and, if so, the effect of the drop.
TRVOleDragEnterEvent = procedure (Sender: TCustomRichView;
const DataObject: IDataObject; Shift: TShiftState;
X, Y: Integer; PossibleDropEffects: TRVOleDropEffects;
var DropEffect: TRVOleDropEffect) of object;
property OnOleDragEnter: TRVOleDragEnterEvent;
(introduced in version 10)
This is a low level event. Do not use it if you are not familiar with OLE drag&drop.
After calling this event, OnOleDragOver will be called while the user moves the mouse pointer inside the editor. Dragging will be finished either by calling OnOleDrop (successfully) or by calling OnOleDragLeave (canceled, or mouse left the editor).
DataObject – dragged data (IDataObject is declared in ActiveX unit).
Shift – keyboard state.
PossibleDropEffects – a list of allowed operations, set of rvdeCopy, rvdeMove, rvdeLink.
DropEffect – operation that the editor would choose by default.
DropEffect – operation that you want to perform with the dragged data (one of PossibleDropEffects, or rvdeNone if you do not want to accept it).
See also events: