I am in need of a gentle nudge in the right direction here. Can anyone be so kind as to point me in the direction of some sample code or docs on how to find the cursor's position on a canvas, relative to the top left corner (0,0) in Tk?
I am currently playing with event and $widget->x and $widget->y but haven't got very far at all.
I have looked through the Tk docs and event was the closest thing I can find to use as a starting point.
I have also looked on CPAN but all I found was an interface for the Qt toolkit.
Anyone have any leads or done something like this? Is it even posible?
In reply to Tk and mouse position by Popcorn Dave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |