hongji.li
2023-11-07 1a1ba3ad5ed9e4380185aa1ccad20204a0e5f115
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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'
}