lazhen
2025-01-07 b3987122cbbc46c5c59d3173f37fca3170b6dc5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
  }
}