Example Code

Programmatically Show Table Scroll Bars

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

Coding that exemplifies how to programmatically show the scroll bars on a table control.

 

Description

The scroll bars for table controls can only be on or off. However sometimes it is desired to have the scroll bars turned on only if there is enough data in the table to need them. This can be done programmatically by checking if the size of the array is greater then the amount of rows and columns that are visible, and then changing the "Vertical Scrollbar Visible" property accordingly.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Insert the amount of data into the table as desired.
2. Select the Run button.


Additional Information or References

Capture.PNG

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.