Graphisoft®

Dialog ManagerVersion: 2.0

EditDragSourceObserver::EditDragStarting

Event handler for the drag starting notification.

virtual void EditDragStarting (
    const EditDragSourceEvent & ev,
    bool *              canStart
);

Parameters

ev
A reference to the event.
canStart
true by default. If false value is set, drag and drop start is disabled.

Description

If this event rise it is time to decide to let the drag and drop start from this control or not.

Example

// Method Example:
void	TextControl::EditDragStarting (const DG::EditDragSourceEvent& ev, bool* canStart)
{
	if (ev.GetSource () == &controlledView->editControl)
		*canStart = true;
}

Drag starting event handling.