Graphisoft®

Dialog ManagerVersion: 2.0

ItemDragSourceEvent::GetDragData

Retrieves a pointer DragSourceEventProperty data retrive class.

DragSourceEventProperty * GetDragData (void) const;

Return Value

Data manipulation class pointer for drag sources.

Description

Use this function when you need to set custom data in a drag and drop operation. After you get a pointer to a DragSourceEventProperty class you can set up your custom data.

Example

// Method Example:
void	DragTab3Observer::UserItemDragStarted (const DG::UserItemDragSourceEvent& ev, UShort* /*effect*/)
{
	DG::DragSourceEventProperty* dragSourceData = ev.GetDragData ();
	DG::Point pos = dragSourceData->GetSourcePosition ();
	DG::Rect metaRect (0, 0, 300, 300);
	dragSourceData->SetSourceFeedback (CreateUserItemFeedback (pos), &metaRect);
	dragSourceData->SetDelayedData ('TEXT', DG::DragDrop::Application);
}

Setting drag source custom data and feedback.