Here's one way to do it. Find the link or network item that
you want to get the end points of. You can do this by
selecting it and then finding which item is selected.
Once you have that, lets assume it's link128 and go from
there.
Let's assume for now that you only have one instance of tkined
running with one canvas/map inside it. You can get the name
of the link that is selected like this:
set selected_item [tkined0 selection]
(which for this example returns link128)
# aside: if you do a [link128 editor] it will return tkined0
set canvas_oid [link128 items]
set canvas_id [link128 canvas]
$canvas_id bbox $canvas_oid
This gives you 4 coordinates that equal the two end points
of the line.
You could draw more than bitmaps/graphs perhaps by integrating
the 'plus' patches. It adds better support for images in the
canvas widget. You would probably have to change tkined to
get it to do what you want though.
____________________________________________________________________________
Doug Hughes Engineering Network Services
System/Net Admin Auburn University
doug@eng.auburn.edu
-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.