Sorry, please disregard this. The coordinates are already correct, it was a 
totally unrelated bug that was causing the issue.

On Saturday, 20 January 2018 04:01:12 UTC-5, Pan Daimonium wrote:
> Hi,
> I am trying to make a narrow-purpose graphical editor by subclassing 
> canvas%. I'm reading mouse events to get coordinates, but they're 
> coordinates on screen, and when I try to draw the results to the canvas' 
> dc, they appear in the wrong place. I'm wondering what is the best way to 
> convert coordinates so that the results will show up under the cursor? I 
> saw a similar question asked previously about an editor-canvas%, but the 
> answer given was to use editor-canvas%' global-to-local function, and that 
> class is unsuitable to my purposes.
> Thanks,
> Paul

You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to