program shows how to get cursor location.