Graphisoft®

Dialog ManagerVersion: 2.0

UserItemDragSourceObserver::UserItemDragStarting

Event handler for the drag starting notification.

virtual void UserItemDragStarting (
    const UserItemDragSourceEvent & ev,
    bool *              canStart
);

Parameters

ev
A reference to the event.
canStart
false by default. If true, the drag and drop operation can start in the user item control.

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	DragTab3Observer::UserItemDragStarting (const DG::UserItemDragSourceEvent& /*ev*/, bool* canStart)
{
	*canStart = true;
}

Drag starting event handler for user item controls.