LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a scroll bar that includes multiple controls?

Hello, I have a listbox that will vary in length and next to the listbox is an array of buttons with each button corresponding to one row in the listbox. Since they will both vary in length, is there a way to somehow add a scroll bar that will encompass both the listbox and the array of buttons? Since I want them to be confined to a certain size, yet have unrestricted length since they can very. Here is a picture of what I am describing. 

listboxwithbuttons.PNG

Any help would be appreciated, thanks!

0 Kudos
Message 1 of 2
(2,287 Views)

One way do this is to add a scroll bar to the listbox, then check if the top row (TopLeft -> Row)

has changed on a mouse move (possible scroll) or mouse down (possible scroll button) event. 

Update the Array position (Index values) if a change occurs.

 

See attached snippet.

--------------------------------------------------------------------------------------------------------------------------
Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
question. Give "Kudos" to replies that help.
--------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 2
(2,229 Views)