It is currently Mon Nov 20, 2017 12:57 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Canvas gadget sends MouseMove events constantly [Solved]
PostPosted: Tue Jul 25, 2017 5:16 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:49 pm
Posts: 503
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:
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.

Top
 Profile  
Reply with quote  
 Post subject: Re: Canvas gadget sends MouseMove events constantly
PostPosted: Tue Jul 25, 2017 5:20 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jan 10, 2008 1:30 pm
Posts: 1125
Location: Germany, Glienicke
can not confirm this bug report, I get only a message if I move my mouse

(PB 5.60 64, Win7 64)

_________________
ImageImage


Top
 Profile  
Reply with quote  
 Post subject: Re: Canvas gadget sends MouseMove events constantly
PostPosted: Tue Jul 25, 2017 5:54 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Oct 09, 2007 2:15 am
Posts: 871
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 5.45 LTS / 5.61 (Windows x86/x64) | Windows10 Pro x64 | Z87-PLUS | i7 4770k | 32GB RAM | iChill GeForce GTX 980 X4 Ultra | HAF XF Evo​​
English is not my native language...


Top
 Profile  
Reply with quote  
 Post subject: Re: Canvas gadget sends MouseMove events constantly
PostPosted: Tue Jul 25, 2017 5:57 pm 
Offline
Enthusiast
Enthusiast

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


Top
 Profile  
Reply with quote  
 Post subject: Re: Canvas gadget sends MouseMove events constantly
PostPosted: Tue Jul 25, 2017 6:10 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Apr 26, 2003 2:49 pm
Posts: 503
I plugged a mouse and still happened, but in another laptop didn't so it's a hardware issue.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye