Quintiq file version 2.0
#parent: CustomDrawComponentContainer/CustomDrawDataLayerLink
Response OnDrop (
  LibOpt_Link source
) id:Response_CustomDrawComponentContainer_CustomDrawDataLayerLink_OnDrop
{
  #keys: '[139164.3.1559112651]'
  Body:
  [*
    node := maxselect( source, UIGraphArc.Destination, node,
                       y >= node.Y(),
                       node.Y() );
    if( isnull( node ) )
    {
      node := minselect( source, UIGraphArc.Destination, n, true,
                         n.Y() );
    }
    
    after := maxselect( node, UIGraphRow.UIGraphNode, n, n.X() <= x, n.X() ); 
    
    node.UIGraph().MoveAfter( node, after, not dropaction.IsControl() );
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_CustomDrawDataLayer_OnDrop'
}
