LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically Detect FP Vertical/Horizontal Scrollbar Scrolling

Solved!
Go to solution
I need to be able to detect when user scrolls up/down and left/right of my VI front panel during execution. Please what are the options to accomplish this?
0 Kudos
Message 1 of 7
(4,765 Views)

Hi,

 

You can use VI Server to reference the pane (This VI Ref>Frontpanel Window>Panes>take first Pane) and select the Content Area Rect Property which  coordinates values are changing when scrolling up/down and left/right.

 

 

Christian

Message 2 of 7
(4,755 Views)

For a handy boolean indication that a scroll took place....

 

1.gif

Message Edited by Broken Arrow on 11-10-2009 12:13 PM
Richard






Message 3 of 7
(4,735 Views)
Solution
Accepted by topic author aderogba

sorry about the deleted imbedded picture. Trying to stop imbedding pictures from Gallery. Lets try again....

 

 

Message Edited by Broken Arrow on 11-12-2009 08:07 AM
Richard






0 Kudos
Message 4 of 7
(4,708 Views)

Replying to a related post because I don't see a 'new message' button.

 

I'm trying to use the "key repeat?" event to move the FP horizontal crollbar box with left and right arrow keys; prefer that to repeatedly pushing the keys. However, it seems that events are stored after the limits are reached and with event discarded. It takes a while to reverse scrolling, seems like many events are stored beyond the limits. I don't have a grasp of what's going on with this event.

 

Appreciate any help you can provide to help me understand this event and how to constrain panel scrolling and reverse scrolling direction without delay. Example code (LV 2014 home/student edition) is attached.

 

Thanks,

 

Jeffrey Bledsoe
Electrical Engineer
0 Kudos
Message 5 of 7
(3,861 Views)

Hi Ramp,

 

when you want to have immediate reaction of your VI you should not use a wait function in your loop!

Because of the "key repeat" event you will always have a small delay: there's a deley between initial key stroke and the first key repeat.

 

And it would help to have the origin cluster wired through ALL event cases. "Default if unwired" tunnels can enforce unwanted behavior of your VI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 7
(3,853 Views)

@GerdW wrote:

Hi Ramp,

 

when you want to have immediate reaction of your VI you should not use a wait function in your loop!

Because of the "key repeat" event you will always have a small delay: there's a deley between initial key stroke and the first key repeat.

 

And it would help to have the origin cluster wired through ALL event cases. "Default if unwired" tunnels can enforce unwanted behavior of your VI…


Changing the value of the input to the wait function eliminated the problem. I tried removing it but it scrolled too fast so I brought it back and set it to about 20 ms.

 

The wait function was a leftover from when I first tried a 'key down' event for scrolling.

 

Thanks,

 

Jeffrey Bledsoe
Electrical Engineer
0 Kudos
Message 7 of 7
(3,828 Views)