LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scrollbar control in Labview

Is there any way to make a scrollbar control other than using the activeX control Microsoft Forms 2.0 Scrollbar?
0 Kudos
Message 1 of 6
(4,283 Views)
Hi,
What about slides from "Control/Numeric" or "Control/Classic controls/Numeric" palettes?

Oleg Chutko.
0 Kudos
Message 2 of 6
(4,281 Views)
yes, but the functionalities are not quite the same.
1) I would like to define the size of the slider.
2) When I click above the slider (for instance), the new value of the control has to be incremented by a specified value, and not just jump to the value corresponding to the mouse position.
0 Kudos
Message 3 of 6
(4,281 Views)
You can define the size of the slide programmatically, by using the size property.
To change the way the slide increments/decrements, you need some more programming.
I have included the VI, that will change the current value of the slide depending on what you select on the bottom edge of the slide (I used Booleans for this). If the value selected is greater than the current value of the slide, the two will be added to give the new slide value.
If the value selected is smaller than the current slide value, it will be subtracted.
If the two values are the same, the slide value will stay the same.
The VI was build in LabVIEW 6i.

Zvezdana S.
National Instruments
0 Kudos
Message 4 of 6
(4,281 Views)
Thank you Zvezdana for your vi. I have a few comments:
1) It is true that I can use a property node to adjust the size of the slide housing, but I cannot adjust the size of the slider itself (like scrollbars), or at least I didn't find the way to do it.
2) An other way to do it is to use the scrollbar of the multicolumn listbox. The scale is defined with the number of rows and the size of the housing is adjusted with the cell height. The size of the slider is then adjusted automatically. The only "cosmetic" problem is that I cannot reduce the width of the listbox in order to keep only the scrollbar.

Roland
0 Kudos
Message 5 of 6
(4,281 Views)
LabVIEW 8.0 includes custom scroll bar controls that you can add to controls that have scrollable data.
0 Kudos
Message 6 of 6
(4,078 Views)