Example Code

Highlighting Buttons

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
This example VI demonstrates using highlight commands and mathematical operations to give buttons a rollover effect.

 

Description
Highlighting Buttons.vi uses math and highlighting to gives buttons a "roll over" effect. This example also gives tips on using button events to allow cursor changes, such as the cursor changing to a hand when it moves over a button.

 

Requirements
1. LabVIEW Base Development System (or compatible)

 

Steps to Implement or Execute Code
1. Open the Light Up Buttons.vi".
2. Run the VI.
3. Hover the mouse on top of either button.
4. Click either button to stop the program.

Additional Information or References
Capture.PNG

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

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