LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Horizontal Slider Event Problems

Solved!
Go to solution

@raphschru wrote:

The objective was to have only one event when the user releases the mouse after sliding, since the OP wants to play the sound only once. In your example, it fires events continuously.

Ah, only read the first half of the description. This should work in typical scenarios... (assuming the sounds are short)

 

 

altenbach_0-1735598597003.png

 

 

0 Kudos
Message 11 of 12
(189 Views)

@altenbach wrote:

@raphschru wrote:

The objective was to have only one event when the user releases the mouse after sliding, since the OP wants to play the sound only once. In your example, it fires events continuously.

Ah, only read the first half of the description. This should work in typical scenarios... (assuming the sounds are short)

 

 

altenbach_0-1735598597003.png

 

 


Same as for Paul's example, this won't work if the user releases the mouse out of the VI window, and this isn't even a rare corner case.

This is quite typical, when you want to make sure to set a slider to its minimal or maximal value, that you overshoot with your mouse to snap it to the scale limit.

If the slider is close to the window border, it will fail often.

 

A simpler solution here would require NI/Emerson to implement a "Global Mouse Up" event.

 

Regards,

Raphaël.

0 Kudos
Message 12 of 12
(178 Views)