Jump to content

1 Screenshot

About This File

Toolbar Class

Copyright © 2014, Brian Hoover (hooovahh)


Brian Hoover (hooovahh)

Environment Support:

LabVIEW 2011 and up

Windows only (likely XP and newer) due to .NET dependency


This is a toolbar class designed to make toolbars in the UI, which appear more like normal toolbars seen in Windows.

The idea for this came about because I wanted a way to make a simple toolbar, but didn't want to have to make all the button states for mouse not over, mouse over, mouse down. I just wanted to provide one PNG file for a button, and have it take care of how the button should look.

I also wanted a way to handle when there are more buttons than there is room for horizontally. When this happens I wanted a More Options button to appear which when clicked gives a vertical list of the remaining buttons, and a veritcial scrollbar if there are too many buttons to show vertically.

I also wanted support for basic veritcal and horizontal separators.

This toolbar class can do all these things, and all that is needed is to provide the buttons as PNG files with alpha layers. other file types like JPG, and BMP are supported but won't look as good just because buttons don't need to be a rectangle and can have soft edges. The Add Icon(s).vi is a polymorphic and also can add images from Image Data, or the native LabVEW picture data type. But these image types have the same issue mentioned with JPG and BMP that they don't support alpha layers.


This relies on the following OpenG packages, a VIPC is included.

OpenG Error Library-

OpenG Application Control Library-

OpenG File Library-

OpenG String Library-

OpenG Array Library-

OpenG LabVIEW Data Library-

Installation and instructions:

At the moment this is not distributed as a package but just a zip with the required files in it. Install the OpenG packages required or install the Required Packages.vipc. Then run the Example Toolbar under the Example folder. This uses images from within the Example Images folder and must be in the same directory as the Example Toolbar.vi. There is also a Toolbar Tree.vi which shows the public functions as they could appear on the palette.


This code was downloaded from the LAVA Code Repository found at lavag.org

What's New in Version 1.0


  • Initial release

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.