Thanks to great help of Darkvater and other developers, and of course your tips and ideas, the patch is ready

_____________________________________________________________
Hello. Some time ago I've been making a tile measurement tool based on tooltips. [Link]
This was, however, producing random tooltip flickering and other problems.
Basicly, the tooltip is a window, and it had been found, destroyed, and created again each tick.
In this new version, main statusbar is being updated only when holding shift/relasing shift, so it works much faster.
The code is messy, because I didn't start cleanup. It is full of comments. My changes can be found via diff or via Search:MEUSH.
Be aware, it doesn't work yet for length=2 in regular directions(NE, NW, SE, SW), but it is visible only when doing NW.
Thank you in advance for global suggestions on performance and this patch in general.