Graphisoft®

Dialog ManagerVersion: 2.0

EditDropTargetObserver::EditDropped

Event handler for the drag dropped notification.

virtual void EditDropped (
    const EditDropTargetEvent & ev,
    DragDrop::Effect *  effect
);

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.

Description

When a drop event occurs it is time to insert data into the drop target. If you provided custom feedback, now is the time to erase it.

Example

// Method Example:
void	DragTab1Observer::EditDropped (const DG::EditDropTargetEvent& ev, DG::DragDrop::Effect* effect)
{
	if (ev.GetSource () == &tabPage->multiEdit)
		*effect = DG::DragDrop::Copy;
}

Identify the drop target, than modify the feedback by returning a modified effect.