When we set a viewport with VIEW command, the coordinates for all the functions that draws graphics are translated, and some clipping occurs. This is quite efficient, useful, nice. But the mouse coordinates keep relative to the main application window.
This has not to change, but it could be refined to make avaiable without user computation the coordinates of the mouse in any given user defined viewport without disallowing the standard getmouse. I was thinking of something like what is done with FILES but it can be in fact simpler because we can only have one user defined viewport besides the application screen.
Code: Select all
VIEW (...)-(...), color1, color2
GETMOUSE [viewportNum = 0 or 1,] gmx, gmy........
And in any case I don't see an easy way to obtain this behaviour by hand.
Thanks whatever for paying any attention to this.