LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

continuous mouse events

I'm trying to cause a circle drawn in an IMAQ image field to grow for however long the mouse button is held down over the field, then persist at the last size once the mouse button is released. So far all parts of this work except for the circle growing while the mouse is held down. (The function is just supposed to iterate a value for the offset of the x,y parameters for the bounding box of the circle). LabView picks up on the Mouse Down event once, then the Mouse up event once, no matter how long I hold down the mouse button. Is there a way to repeatedly trigger an event for Mouse Down while it's being held down (and not clicked repeatedly)? Extra sweet if I can time delay the event trigger rate (say, once every 10ms) without tying up the CPU in wait mode.
0 Kudos
Message 1 of 5
(3,391 Views)
If this question is related to LabVIEW you should repost it to the appropriate forum: this board is related to Labwindows/CVI.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,376 Views)

Argh, my mistake. Done, thanks.

0 Kudos
Message 3 of 5
(3,351 Views)

Maybe you could trap the mouse move event to get an idea of when you let go of the
mouse button or move the mouse away. Or lower the timeout of the event
structure to something very small, set a flag on mouse down, and increase the
ROI any time the loop runs and that flag is set, until the Mouse Up event comes
in and clears the flag.


Vince M
Applications Engineer
0 Kudos
Message 4 of 5
(3,323 Views)
This discussion has continued here in the LabVIEW forum


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,316 Views)