09.11.2010, 06:03
If you want a advanced one that shows the nearest root do what cessils said, but if you want a simple dialog one you can use this one, just simply add/change cords etc.
http://pastebin.com/vGxteVNP
http://pastebin.com/vGxteVNP