In LabVIEW 6.0 and later, you can use Property Nodes to programmatically show or hide the front panel scroll bars. LabVIEW 8.0 introduces panes on the front panel. This feature makes it possible to scroll sections of the front panel independently.
LabVIEW 8.0 and later
- Use the Property Node located on the Functions»Programming»Application Control palette.
- Right-click the Property Node and select Select Class»VI Server»VI»VI. By default, this references the current VI.
- Right-click Property on the bottom half of the Property Node and select Properties»Front Panel.
- Create another Property Node.
- Wire the second Property Node reference to Panel.
- Right-click Property on the second Property Node and select Properties»Panes[].
- Create another Property Node.
- Create a For Loop around the third Property Node to access all pane refnums or use the Index Array function to access a specific pane's refnum.
- Wire the Panes[] reference through the For Loop or through Index Array function to the third Property Node. Your wire should be a single refnum instead of an array. See the image below.
- Right-click Property on the third Property Node and select Properties»Horizontal Scrollbar Visibility.
- Create three Close Reference VIs from the Functions»Programming»Application Controlpalette.
- Wire each reference from the three property nodes to a Close Reference VI.
- Right click on the HorizScrollbarVisibility and VertScrollbarVisibility property nodes and select Change to Write.
- Right click the HorizScrollbarVisibility and VertScrollbarVisibility inputs and select Create»Constant or Control.
LabVIEW 6.0 through 7.1
- Use the Property Node located on the Functions»Application Control palette.
- Right-click the Property Node and select Select VI Server Class»VI. By default, this references the current VI.
- Right-click Property on the bottom half of the Property Node and select Properties»Front Panel Window»Show Scroll Bars.
- Creat a boolean control or constant and wire it to the FP.ShowScroll property.
- Create a Close Reference VI from the Functions»Application Control palette.
- Wire the reference from the property node to a Close Reference VI.
Restoring scroll bars to a global variable
- Select Functions»Programming»Application Control»Open VI Reference and place it on the block diagram.
- Right-click the VI path input of the Open VI Reference VI and select Create»Constant.
- Type in the file path to the global variable.
- Run the VI. The scroll bars will return to the front panel of the global variable.