quote:
a) The Marker demo illustrates how to create "markers" with MouseInteractVt := [miPutLineLabel];. Is it possible to select a iekLineLabel object and determine the pixel location of the "marker" created with a iekLineLabel object?
It is possible to know the initial and ending coordinates of the line. Look at GetObjRect method.
quote:
b) If a) is possible, is there a function to enter the pixel location of two iekLineLabel objects and determine the distance in pixels between the two "markers"?
You have to calculate the distance manually.
Given the coordinates of the two objects you can calculate the distance with:
function GetTwoObjDistance(ie:TImageEnVect; hobj1, hobj2: integer): double;
var
lx, ly: double;
r1, r2:TRect;
begin
ie.GetObjRect(hobj1, r1);
ie.GetObjRect(hobj2, r2);
lx := abs(r1.Left-r2.Left) * ie.MeasureCoefX;
ly := abs(r1.Top-r2.Top) * ie.MeasureCoefY;
result := sqrt(lx * lx + ly * ly);
end;
This sample code assumes that Left/Right and Top/Bottom coordinates coincide.