LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

event on picture without click

Solved!
Go to solution

Hi,

 

I'm asking if it's possible to get an event without click_event ?

Let me explain : I have a picture and I would like to collect the GetRelativeMouseState without clicking on this picture.

 

Is it possible ?

Thank you

0 Kudos
Message 1 of 4
(3,209 Views)
Solution
Accepted by topic author ZazOufUmI

yes, it's possible: You can use timer events. Have a look at the example moustate.cws

0 Kudos
Message 2 of 4
(3,208 Views)

I will check it out thank you

0 Kudos
Message 3 of 4
(3,204 Views)

Also, if all you want to do is to get the mouse position when the mouse moves over the picture, instead of continuously, even when the mouse isn't moving, then all you need to do is to catch the EVENT_MOUSE_POINTER_MOVE event in the picture's callback function. The mouse position is supplied to the callback via the event data parameters.

 

If you want to catch mouse moves outside of the picture control boundary as well, then you could catch the event in the panel callback instead.

 

Luis

 

 

0 Kudos
Message 4 of 4
(3,188 Views)