Quintiq file version 2.0
#parent: CustomDrawRC/CustomDrawDataLayerRS
Response OnDrawObject (
  RoutingStep object
) id:Response_CustomDrawRC_CustomDrawDataLayerRS_OnDrawObject
{
  #keys: '[139394.0.1277787060]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebCustomDrawDataLayer_OnDrawObject'
  QuillAction
  {
    Body:
    [*
      // Draw routing step
      
      //Initialize borders
      surface.Pen().Style( PenSpecification::StyleSolid() );
      surface.Pen().Width( 1 )
      surface.Pen().Color( ColorScheme.RoutingConfigurator_RoutingOutline() );  
      
      //Initialize filled colors
      //It is safe to use color scheme as the routing config is not user / scenario specific
      surface.Brush().LinearGradient( region.BoundingRect(), 
                                      ColorScheme.RoutingConfigurator_RoutingStepFromColor(),
                                      ColorScheme.RoutingConfigurator_RoutingStepToColor(), 
                                      0.0 );
      
      //Initialize text
      rcv := MacroPlan.RoutingConfiguratorView();
      surface.Font().Name( rcv.FontName() );
      surface.Font().Size( rcv.FontSize() );
      surface.Font().Bold( true );
      
      surface.Draw( region.Shape() );
      textformat := TextFormat::Construct( TextFormat::AlignLeft(), TextFormat::AlignTop() );
      surface.TextZoom( 2, 2, region.BoundingRect().Width(), region.BoundingRect().Height(), object.Name(), textformat );
    *]
    GroupServerCalls: false
  }
}
