Quintiq file version 2.0
#parent: CustomDrawComponent/CustomDrawDataLayerNode
Response OnClickObject (
  Node object
) id:Response_CustomDrawComponent_CustomDrawDataLayerNode_OnClickObject
{
  #keys: '[110994.0.678867474]'
  Body:
  [*
    // Remember last clicked location, binding to node
    ApplicationLibMacroPlanner.SupplyChainDiagramLastClickedLocation( xposition, yposition );
    
    index := DataHolderHighlight.Data().Find( object );
    found := index >= 0;
    if ( action.IsControl() )
    {
      if( found ) // Delete object
      {
        DataHolderHighlight.Data().Delete( index );
      }
      else // Add object
      {
        DataHolderHighlight.Data().Add( object );
      }
    }
    else // Flush all objects
    {
      DataHolderHighlight.Data().Flush();
      DataHolderHighlight.Data().Add( object );
    }
  *]
  DefinitionID: 'Responsedef_CustomDrawBaseDataLayer_OnClickObject'
}
