UI Interest Group Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Collapse and Expand Controls

Summary:

To save space at the user interface, I created an XControl that you can collapse to the title only or expand to see all.

Each Control/ Indicator can be collapsed or expanded and all of them can be stucked together.

Function:

Each Control is referenced to set the dependance to the others. Within the properties you can set to which control each is stucked, if the control initially is collapsed or expanded and the color of the control. The Name is set to the control's label.

Steps to execute code:

  1. Download attached archive
  2. Unpack this archive
  3. Open project CaE Project.lvproj
  4. Run VI named Example.vi
  5. Press Collapse/Expand buttons and change values.
  6. Stop this VI with stop button and explore code of XControl

The example GUI it looks like this:

Example_FP.PNG

In the block diagram you have to pass the control references so that the following controls can snap to the above ones:

Example_BD.PNG

The XControl is written in LabVIEW 2014 and additionally convertet to LabVIEW 2011. Please free to download and test it.

This is Version 2 with color settings.

Download All
Contributors