LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pane scrollbar

Hello all. 
I can scroll the vertical or horizontal scrollbar infinitely while the VI is running. I only need to scroll it until the end of the user interface , but not that much. How can I implement it programmatically .

0 Kudos
Message 1 of 4
(2,796 Views)

Hirst of all, I prefer panes WITHOUT scrollbars. Good UI must be fitted into window.
Anyway, you can control "origin" property of the pane. But I don't know "origin changed" property, so you need control: mouse move, mouse Up, mouse down, mouse scroll. Here the sample of check/action

origin.png

Message 2 of 4
(2,782 Views)

@Artem.SPb wrote:

Hirst of all, I prefer panes WITHOUT scrollbars. Good UI must be fitted into window.

 


I disagree.  It depends on what the UI is doing.  There is an Options Dialog Framework out there published by NI that gives a framework identical to what you see in the LabVIEW options window.  Each section of the tree is a separate VI loaded into a subpanel.  And each one of those sections is typically longer than the Options window itself and a scrollbar is visible to allow you to see all of the available options.  This scrollbar only goes as far as the last option.  The code is available and unlocked so you can see how everything is accomplished.  Maybe you could install this and see how it works. 

aputman
0 Kudos
Message 3 of 4
(2,757 Views)

Actually I have a Main VI which calls another VI in subpanel . I need lots of controls in one place, so I could have implement it by putting there a single scrollbar control and a tab , but in that way scrollbar will not move smoothly , so I decided to put all controls in another VI and call that in subpanel. But when user wants to scroll up and down , he can scroll infinitely , which is nonsense and disturbing.

0 Kudos
Message 4 of 4
(2,752 Views)