LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display a checkmark in a cell in a table control

Hi,

On the front panel of the vi I am creating I have a Table control with multi rows and columns. I use this table to display collected data using DAQ. I basically take the data and add some text and format the table so that meaningful information is displayed to the operator. The table contains 1 column with channel names, another column with the data, and another column with units of measurements (please see attached screen shot). What I would like to do is to add a column to use to display a checkmark when the operator clicks (or double clicks) on a cell (or a row) in the table next to data row that he clicked on. I know how to add the additional column, but I don't know how to display the checkmark and I don't know how to display it in a cell in the table. Any help would be appreciated.

I am using Labview 2011 running on Windows 7

Thanks

 

0 Kudos
Message 1 of 6
(6,314 Views)

Sorry, here is the attachement

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

You didn't attach the screenshot.

 

Ben64

 

edited: ok, now you have send it!

 

I don't think you can do it with a table which is an array of string. I know you can do it with a multicolumn listbox (set visible item -> symbols). Note that the MCL is less user friendly than a table. There is probably a workaround solution like addind checkboxes on the side of the table control.

0 Kudos
Message 3 of 6
(6,299 Views)

You can overlay an array of checkboxes on top of a column of the table.  It will take some work to make it look nice, and potentially to keep the array index matched with the table scroll bar, but it can be done.  Unfortunately there's no native way to do.

0 Kudos
Message 4 of 6
(6,276 Views)

Just change the font for those cells. For example in the attached screenshot I entered a "1" in the cell for the second row and changed the font to Wingdings. Now I have a folder icon.

 

 

 

If you want to do it programmatically, you can use the Active Cell property (set the row to -2 and then specify the column), and then set the font name.

 

Download All
Message 5 of 6
(6,273 Views)

Thank you for all your input.

 

Here is how I ended up doing it. This sample vi can be configured in different ways. I set it up so that row 0 is always selected and if you double click on it, it will select all the subsequent rows. If you double click on it again it will deselect all the subsequent rows. This feature is useful when you have many rows to select or deselect and you want a quick way to select all or none. If you double click on each individual row below row 0 you will select or deselect only that row. An additional useful feature but is not shown in the sample is to save the selected rows in a file before exiting the program and load the selected rows when you start the program. This is useful if you have many rows and you don't want to have to select each row again when you rerun the program.

 

Sorry for the delay.

 

 

0 Kudos
Message 6 of 6
(6,003 Views)