Canvas gadget sends MouseMove events constantly [Solved]
Posted: Tue Jul 25, 2017 5:16 pm
If you let the cursor over the canvas gadget it sends the mouse move event constantly even if the cursor is not moving.
PB 5.60 64
Win7 64
PB 5.60 64
Win7 64
Code: Select all
EnableExplicit
Define.i win, canvas
Procedure eventHandler()
Debug "mm"
EndProcedure
win = OpenWindow(#PB_Any, 0, 0, 220, 220, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
canvas = CanvasGadget(#PB_Any, 10, 10, 200, 200)
BindGadgetEvent(canvas, @eventHandler(), #PB_EventType_MouseMove)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow