Converts a buffer position to a graphical location within the buffer.
The x box is filled with the x-coordinate of the location of pos and the y box is filled with the y-coordinate