Determine Canvas/Window Coordinates in Paint Event using System MouseX and MouseY
This sample project shows how to get the Global, Window, and Canvas coordinates with teh System.MouseX and System.MouseY coordinate system by using math and showing teh various coordinates in the Canvas.
This example was created on Windows 10, is a Desktop application, and was created with Xojo API2 in Xojo 2019 r3.1.