LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scrollbar event

is there any way to obtain a scroll event from the front Panel scroll bars. I'm adding VIs to subPanels in the main front Panel and when there are more VIs than can fit in the screen I enable the scroll bars. I want to be able to control how far the panel can scroll though. i.e check the bounds of the scroll bar.
Is this possible or is there a simpler way to do it.
0 Kudos
Message 1 of 6
(5,239 Views)
Hi,

You can use the Front Panel property "FP: Origin" to limit the horizontal and vertical movement of the scroll bars. Please see the attached VI where I have limited the vertical downward movement of the scroll bar above a certain limit.

Please let me know if you have any questions/comments on the issue.

Regards,
Ankita A.
National Instruments
0 Kudos
Message 2 of 6
(5,239 Views)
thanks for your answer. Although that does basically do what I'm wanting I'm more after the ability to generate a scroll bar change value event. Specifically a filter type event. The problem is that the scroll bar changes the origin before you have a chance to limit it, resulting in strange behaviour at the scroll bar limits. A filter event would let you catch the change before the origin is moved.

Mike
0 Kudos
Message 3 of 6
(5,239 Views)
Hi,

Unfortunately, there is no scroll bar filter type event available in LabVIEW currently. If you could describe the strange behavior that you are noticing with a simplified VI, I would try to investigate the issue further.

Regards,
Ankita A.
0 Kudos
Message 4 of 6
(5,239 Views)
Thanks again. This is really no biggy. It was just a feature I was looking at implementing in some spare time.

The behaviour I was referring to is at the limits. The problem, I think, is that when you move the scrollbar, the position of the origin is adjusted and the front panel is updated. Then the polling loop detects that the origin position has changed and corrects it by manually adjusting it back into place. This results in the panel scrolling past the limit momentarily before being reset. Labview also seems to have problems with this as it will sometimes result in the scrollbar being drawn incorrectly (it actually draws two scrollbars in the same position [see picture])

There needs to be some way of detecting that t
he origin position has changed before the panel is redrawn.

Thanks

Mike
Download All
0 Kudos
Message 5 of 6
(5,239 Views)
Hi,

I could reproduce the behavior you described at the scrollbar limits. Since I could not find a workaround to this behavior, I would suggest that you create a product suggestion for a filter event for scrollbar movement. Product suggestions can be made by visiting
www.ni.com>> Contact NI>> Product Feedback.

Regards,
Ankita A.
0 Kudos
Message 6 of 6
(5,239 Views)