Prashant Oswal wrote:
I tried running your VI, and the "VI: Mouse Leave" event does not have the desired effect. I put probes and can see the values flow, but the front panel does not reset the slider to zero when the mouse leaves the VI. Instead the slider continues to change value with the motion of the mouse.
Yes, but that's the desired effect. Even if the mouse leaves the front panel while moving the slider, the slide should NOT reset, because it still is under mouse control. Only of you do a mouse-up outside the front panel, the slider should reset to zero. I think this is the preferred behavior and my example perfectly works like that under LabVIEW 8.0. Unfortunately, something changed in 8.2+ and it no longer resets the scale when you do a mouse-up outside the window.
It might be interesting to know why this behavior changed and we must find a workaround. It is less of a problem if the panel is maximized, which seems to be the case in the described application.
Your fix is not ideal and causes very undesirable behavior if you grab the slider and drag outside the VI window. It will constantly flicker. Try it! Grab the slider, then move vertically down outside the window, then, (with the mouse still pressed) move left and right.