The following routines convert X/Y coordinates between dialog units and ESL graphical units:
•OS_DialogToGraphical
•OS_GraphicalToDialog
Graphical units are those defined for the desktop (in Screen size...). Within a scaled graphical region, additional conversion will be required to compensate for the scale factor. (This can be obtained from the ratio of the region's x/ysize to its window x/ysize.)