I want to geht the mouse coords when using the mousewheel over a canvas gadget, but the x and y field of the mousewheel event object are returning weird values.
What do they return? How can I get the real mouse coords relative to the left top corner of the canvas (or window)?
What do they return? How can I get the real mouse coords relative to the left top corner of the canvas (or window)?
Strict Local window:TGadget window = CreateWindow("My Window", 40, 40, 320, 240) Local c:TGadget = CreateCanvas(10,10,50,50,window) While True WaitEvent Select EventID() Case EVENT_WINDOWCLOSE End Case EVENT_MOUSEWHEEL DebugLog CurrentEvent.x + "/" + CurrentEvent.y Case EVENT_GADGETPAINT SetGraphics CanvasGraphics(c) cls End Select Wend