RichEditDropTargetObserver::RichEditDragEntered
virtual void RichEditDragEntered ( const RichEditDropTargetEvent & ev, DragDrop::Effect * effect, bool * defBehaviour );
Parameters
- ev
A reference to the event. - effect
Drag and drop effect can take the following values: DragDrop::Reject, DragDrop::Accept, DragDrop::Copy, DragDrop::Move, DragDrop::Link, DragDrop::Delete. - defBehaviour
true by default. If true, the default target drag and drop behaviour implemented by the Dialog Manager is used. This includes event management and feedback.
Description
Example
// Method Example: void TextControl::RichEditDragEntered (const DG::RichEditDropTargetEvent& ev, DG::DragDrop::Effect* effect, bool* defBehaviour) { if (ev.GetSource () == &controlledView->editControl && (ev.HasDataFormat ('TEXT') || ev.HasDataFormat ('FILE'))) { *effect = DG::DragDrop::Accept; if (ev.HasDataFormat ('TDDE')) *defBehaviour = false; } }
Drag entered event handler in rich edit controls.