Canvas gadget sends MouseMove events constantly [Solved]

Windows specific forum
Justin
Addict
Addict
Posts: 829
Joined: Sat Apr 26, 2003 2:49 pm

Canvas gadget sends MouseMove events constantly [Solved]

Post by Justin »

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

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
Last edited by Justin on Tue Jul 25, 2017 6:12 pm, edited 1 time in total.
User avatar
STARGÅTE
Addict
Addict
Posts: 2067
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Canvas gadget sends MouseMove events constantly

Post by STARGÅTE »

can not confirm this bug report, I get only a message if I move my mouse

(PB 5.60 64, Win7 64)
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: Canvas gadget sends MouseMove events constantly

Post by Bisonte »

Not confirmed on Win10 x64.

Maybe you have a cellphone in the near of the mouse... or the mouse is damaged, or another strong
sender is in the near of your home... maybe a high voltage cable ....
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
Justin
Addict
Addict
Posts: 829
Joined: Sat Apr 26, 2003 2:49 pm

Re: Canvas gadget sends MouseMove events constantly

Post by Justin »

Strange, i am on a laptop i use the touchpad i will check it with a mouse.
Justin
Addict
Addict
Posts: 829
Joined: Sat Apr 26, 2003 2:49 pm

Re: Canvas gadget sends MouseMove events constantly

Post by Justin »

I plugged a mouse and still happened, but in another laptop didn't so it's a hardware issue.
Post Reply