Graphisoft®

Dialog ManagerVersion: 2.0

EditDropTargetEvent::GetSource

Retrieves the event source.

EditControl * GetSource (void) const;

Return Value

A pointer to the event source.

Example

// Method Example:
void	TextControl::EditDragEntered (const DG::EditDropTargetEvent& ev, DG::DragDrop::Effect* effect, bool* defBehaviour)
{
	if (ev.GetSource () == &controlledView->editControl && (ev.HasDataFormat ('TEXT') || ev.HasDataFormat ('FILE'))) {
		*effect = DG::DragDrop::Accept;
		if (ev.HasDataFormat ('TDDE'))
			*defBehaviour = false;
	}
}

Use GetSource to identify the event source.