| Quintiq file version 2.0 | 
| #parent: CustomDrawComponent/CustomDrawDataLayerLaneLegEdge | 
| Response OnDetermineRegion ( | 
|   Edge object | 
| ) id:Response_CustomDrawComponent_CustomDrawDataLayerLaneLegEdge_OnDetermineRegion | 
| { | 
|   #keys: '[110880.4.1287161742]' | 
|   Body: | 
|   [* | 
|     // Determine region for SPUE | 
|     minx := minvalue ( object.FromX(), object.ToX() ); | 
|     miny := minvalue ( object.FromY(), object.ToY() ); | 
|     maxx := maxvalue ( object.FromX(), object.ToX() ); | 
|     maxy := maxvalue ( object.FromY(), object.ToY() ); | 
|     height := maxvalue( maxx - minx, 1 ); | 
|     width := maxvalue( maxy - miny, 1 ); | 
|      | 
|     this.AddRegion( minx, miny, height, width ); | 
|   *] | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_CustomDrawDataLayer_OnDetermineRegion' | 
| } |