JVCL Help:TJvCustomRichEdit.OnGetDragDropEffect

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Occurs when the user drags an OLE object over the control.


Pascal

 TRichEditGetDragDropEffectEvent = procedure (Sender: TObject; ShiftState: TShiftState; var AllowedEffects: TRichDropEffects; var Handled: Boolean) ofobject;
propertyOnGetDragDropEffect: TRichEditGetDragDropEffectEvent;


Parameters

Parameters Description
AllowedEffects Returns the effect to use.
Handled Returns true if the event handler performs the operation, false if the rich edit control should continue with its default processing.
Sender Rich Edit control that has fired this event.
ShiftState Indicates the state of the shift keys and mouse buttons.


Description

Use an OnGetDragDropEffect event to provide feedback to the user about what would happen if a drop occurred at this point. Typically, pressing certain combination of the Shift, Alt, or Ctrl keys while dragging an object changes the effect. For example:

Keys Effect
Ctrl and Shift rdeLink
Ctrl rdeCopy
Alt rdeMove


See Also

TJvCustomRichEdit.OnDragAllowed, TJvCustomRichEdit.OnGetDragDropEffect, TJvCustomRichEdit.OnQueryAcceptData


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page