I have a line which can be horizontal or diagnol, and the user can make it 
longer or short by dragging an end.

If the user should click anywhere on the line I need to keep track of this and 
place a marker or callout over this clicked spot on the line at all times.  So 
if the user clicks say 1/4, say 100 pixels from the bottom of the line) the way 
down from the top left of a diagonal line I need to put a marker there. Then if 
the user drags the line to make it twice as long I still need that marker to be 
in the same spot. 

How would I do this math wise?  And no I don't want it to be a percentage of 
the length of the line. Meaning I always want the spot to be 100 pixels from 
bottom of the line.

TIA, J 

Reply via email to