Graphisoft®

Dialog ManagerVersion: 2.0

EditDropTargetObserver::EditDragEntered

Event handler for the drag entered notification.

virtual void EditDragEntered (
    const EditDropTargetEvent & 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

Use this event to decide whether to accept or reject the current drag and drop operation. If your application requires this is the place to initialize a drop target user feedback.

Example

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

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