LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bug in scrollbar event triggering?

In LabVIEW 8.6, I am trying to fire an event when I finish moving the scrollbar of an array indicator.  I use the "mouse up" event to avoid having the event structure fire constantly the entire time I am moving the scrollbar.  However, there seems to be a bug (?) in the event detection.  It works fine as long as I have the mouse on top of the scrollbar when I release it.  However, Win XP allows you to continue to move the scrollbar even if the mouse is off to the left or right of the bar (when you click on the scrollbar it "locks" the focus onto it).  However, LabVIEW does not seem to realize this and if I have the mouse slightly off to the right of the scrollbar when I release, the event doesnt fire. LV seems to base the event off of whether the mouse is on top of the pixels of the indicator rather than whether I still have control of the scrollbar.


0 Kudos
Message 1 of 4
(3,097 Views)

Technically it is not a bug.  There is no event triggered because when you do the Mouse Up, you are no longer on the scrollbar.  Unfortunately, the behavior in Windows that allows you to continue to move the scrollbar even when you aren't on it is conflicting with the desire to detect when you let go of the scroll bar.

 

There was a recent thread discussingthis very issue and a way to get the behavior you are looking for.

 

Re: Handle mouse up on numeric slider control - even when mouse leaves control

0 Kudos
Message 2 of 4
(3,087 Views)
0 Kudos
Message 3 of 4
(3,080 Views)

I recently ran into this problem as well, check out my example program in the Developer Zone Community. Is it helpful?

 

Regards,

---

Peter Flores
Applications Engineer
0 Kudos
Message 4 of 4
(3,006 Views)