02-14-2011 05:08 AM
Hi Guys,
I would like to use a Multicolumn Listbox, but it's trying hard.
What I want to do is to double-clic on a cell, get his position,
and allow the user to edit it or not, according to the position.
I've notice that it can two kind of type: String or I32,
- Is there a way to switch between theese two type?
plus when it's define as a string, I don't have the "Allow edit cell" property, like when it's a I32 type.
- Is there a way to do that when the type is a String ?
- Or is a way to get the Selection Start property when is an I32 ?
Thanks for any feedback!
Martin
02-14-2011 05:39 AM - edited 02-14-2011 05:45 AM
I'm not sure about a multicolumn listbox - I seem to only be able to select rows.
The row is easy to access, just write the output of the terminal into a numeric indicator.
If you want rown and column of a cell, maybe try replacing the listbox with an array. You can then definitely access the position - see here
Based on the cell the user selects, you could then use the Disabled property node to determine whether they should be allowed to change it or not.
Ian
EDIT: See also this post where someone wanted to do the same thing....
http://forums.ni.com/t5/LabVIEW/Multicolumn-Listbox-Active-Cell/m-p/207628