Quintiq file version 2.0
#parent: CustomDrawComponentRoutingConfigurator/CustomDrawDataLayerExcludedOperationInput
Response OnDrawObject (
  OperationInput object
) id:Response_CustomDrawComponentRoutingConfigurator_CustomDrawDataLayerExcludedOperationInput_OnDrawObject
{
  #keys: '[124808.0.1222257144]'
  Body:
  [*
    //Draw exclusion indicator
    
    //Initialize borders
    surface.Pen().Style( PenSpecification::StyleSolid() );
    surface.Pen().Width( 1 )
    surface.Pen().Color( ColorScheme.Outline() );
      
    //Initialize borders
    if( object.IsElementOfInputGroup() )
    {
     diameter := minvalue( region.Width(), region.Height() );
      left := [Number]( region.Width()/2 ) - [Number]( diameter/2 );
      
      circle := Shape::Circle( left, region.Top(), diameter )
      surface.Fill( circle, Color::Gray() );
      surface.Circle( left, region.Top(), diameter, surface.Pen().Color() );
     
    }
    else
    {
      surface.Fill( shape, Color::Gray() );
      surface.Draw( shape );
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_CustomDrawDataLayer_OnDrawObject'
  Precondition:
  [*
    return not isnull( DataHolderRCView.Data() );
  *]
}
