Graphisoft®

Dialog ManagerVersion: 2.0

EditDropTargetObserver::EditDragMoved

Event handler for the drag moved notification.

virtual void EditDragMoved (
    const EditDropTargetEvent & ev,
    DragDrop::Effect *  effect,
    DragDrop::Feedback * denyFeedback
);

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.
denyFeedback
Use this parameter to control the amount of target feedback. Can take the following values: DragDrop::AcceptSelAndIns, DragDrop::RejectSelection, DragDrop::RejectInsertion, DragDrop::RejectSelAndIns.

Description

This virtual member tracks the movement over a drop target in a drag and drop operation. It is possible to control the allowed effects over the drag target or draw custom feedback.

Example

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

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