Thanks Ken again!
I will look at it as soon as possible. In the meantime, I prepared with huge
effort to sort the data directly in the graphical software which serves for initial processing of the field data (I did not use the FTN95 functions DSORT@/CHSORT@ in my program).
It means, I ran CROSS DETECTION GEOMETRY function which identifies
where from the main line of the optical cable (OC) are the secondary
diversions of the OC. It created more than 20 secondary OC lines including the points which belongs both to the main line and to the secondary line - in fact, they are points, in which start two or more additional directions of OC).
I assigned to all points (created by using function CREATE_AT_INTERVALS - I used 1m interval) belonging to the corresponding section of OC a unique code (S1 = section 1, S2 , S3, S4 ...).
So, I have now the whole web of OC points coded. I created a new TXT input file with the format:
PointID, Code, X, Y
After reading in the data from the file containing the data in the format outlined above, I test in my program, whether two adjacent points have the same code or not.
IF not, then all preceding points are to be joined with a call to a callback containg DRAW_POLYLINE@ function.
I wanted to use the Paul´s suggestion, everything is prepared, but I am not sure how to use it (where to place the call to the new call-back).
The callback used with %PL[full_mouse_input] called PL_CB draws the graphs (as points only):
iw=winio@('%`^pl[full_mouse_input]&',gw,gh,npoints,y_ok,x_ok,y_mm,x_mm,handle_pl_mm,pl_cb)
I created a new function called LINES where DRAW_POLYLINE@ is used and it is unclear for me, how could I call it with %PL[full_mouse_input], since there is already a call-back called (PL_CB).
Can I call 2 call-backs within the command above,
(something like: (%`^PL ... pl_cb, lines)? (it does not work)
Or, should I put and call the new call-back (LINES) within the callback called from %PL (PL_CB)? (it seems - it does not also work).
Thanks for your tips!