LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically create checkboxes and fit to window

Solved!
Go to solution

Is there a way to automatically increase the number of check-boxes that appear on a user input dialog box? 

 

This is what I am trying to accomplish:

 

  • Read in an array of strings
  • Create checkboxes based on the array size and fit to window (similar to express vi)

 

ThanksNAdvance

FredFred

0 Kudos
Message 1 of 6
(2,926 Views)
Solution
Accepted by topic author FredFred

You can make a custom vi popup, I would convert the array of strings to an array of clucters where the cluster has a check box and a duplicate string.  Then show the number of rows of the array = number of elements.  Then you can programatically size the window with property nodes.

 

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 6
(2,917 Views)
No quickdrop in LV8.2, so my coding is too slow.  Do what he said.
Message 3 of 6
(2,912 Views)

One slight change to the cluster, I would either put an clear decoration over the string control or disable the string control (property disable = 1) to prevent the user from typing on the string control.  I use this disable trick to make the appearance of clusters that are controls and indicatiors (eventhough ther are really all controls)

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 4 of 6
(2,903 Views)

Thanks to both for the response.

 

This is a good starting point for me...but...my array is a large one (about 50 contents) and would like to stack them in a 2D array fashion.

 

Will continue workign that issue and post anything once I figure it out!

 

Thanks for the help

0 Kudos
Message 5 of 6
(2,873 Views)

I also need to display one column as check box in a 2d array.

 

May I know if you have any suggestion, thanks.

0 Kudos
Message 6 of 6
(2,622 Views)