Graphisoft®

Dialog ManagerVersion: 2.0

ListBoxDragSourceObserver::ListBoxDragStarted

Event handler for the drag started notification.

virtual void ListBoxDragStarted (
    const ListBoxDragSourceEvent & ev,
    UShort *            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

Use this event to set custom drag and drop data in the drag source control.

Example

// Method Example:
void	DragTab2Observer::ListBoxDragStarted (const DG::ListBoxDragSourceEvent& ev, UShort* /*effect*/)
{
	if (modelessMode) {
		DG::DragSourceEventProperty* evProp = ev.GetDragData ();
		evProp->ModifyBaseFormat ('LBDR', DG::DragDrop::Module);
	}
}

Drag started event handling in a list box control.