| Quintiq file version 2.0 | 
| #parent: CustomDrawRC/CustomDrawDataLayerBlendingOperation | 
| Response OnDetermineRegion ( | 
|   Operation object | 
| ) id:Response_CustomDrawRC_CustomDrawDataLayerBlendingOperation_OnDetermineRegion | 
| { | 
|   #keys: '[139394.0.1283380407]' | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_WebCustomDrawDataLayer_OnDetermineRegion' | 
|   Precondition: | 
|   [* | 
|     object.IsBlending() | 
|   *] | 
|   QuillAction | 
|   { | 
|     Body: | 
|     [* | 
|       //Determine the region of the blending indicator | 
|       //a small box on the upper right corner of the operation | 
|       rcv := MacroPlan.RoutingConfiguratorView(); | 
|        | 
|       cornersize := 10; | 
|       poly := construct( Polygon ); | 
|       poly.Reset(); | 
|       poly.AddPoint( object.X() + rcv.OperationWidth() - cornersize, object.Y() ); | 
|       poly.AddPoint( object.X() + rcv.OperationWidth(), object.Y() ); | 
|       poly.AddPoint( object.X() + rcv.OperationWidth(), object.Y() + cornersize ); | 
|       layer.AddRegion( &poly, 0 ); | 
|     *] | 
|     GroupServerCalls: false | 
|   } | 
| } |