Quintiq file version 2.0 #parent: #root Method SupplyChainDiagramSelectArea ( Number x, Number y ) id:Method_FormSupplyChainOverview_SupplyChainDiagramSelectArea { #keys: '[113694.2.1023688786]' Body: [* // select area ValueHolderX.UserData(); ValueHolderY.UserData(); x1 := minvalue( ValueHolderX.UserData(), x ); y1 := minvalue( ValueHolderY.UserData(), y ); width := maxvalue( ValueHolderX.UserData(), x ) - x1; height := maxvalue( ValueHolderY.UserData(), y ) - y1; selected := selectset( DataHolderView.Data(), Node, n, n.IsVisible() and n.Overlap( x1, y1, width, height ) and guard( n.GetNodeVisibility( DataHolderFocusedUnit.Data(), DataHolderFocusedSP.Data(), DataHolderView.Data() ), false), true ); DataHolderHighlight.Data( selected.Copy() ); this.SupplyChainDiagramForceRepaintAll(); *] }