Example Code

How Can I Programmatically Set the Position of My Scrollbar?

Code and Documents

Attachment

Overview

     This VI demonstrates how to programmatically scroll through text that is within a string control with the use of property nodes.

Description

     This VI makes use of the Text.ScrollPosition property for string controls to programmatically set the position of the string's scrollbar. The "Scroll Position" input determines the first visible line on the string control (0-indexed).

Steps to Implement or Execute Code

  1. Open and Run the VI
  2. Change the "Scroll Position"
  3. Press STOP to stop the VI

Requirements

Software: LabVIEW Base

Additional Images or Video


Scrollbar Position.PNG


Matt J | National Instruments | CLA

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

Contributors