Graphisoft®

Dialog ManagerVersion: 2.0

EditDragSourceEvent::GetSource

Retrieves the event source.

EditControl * GetSource (void) const;

Return Value

A pointer to the event source.

Example

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

Identify the source, by using the GetSource member function.