02-09-2011 01:35 PM - edited 02-09-2011 01:35 PM
I have a pretty simple VI that resizes a MC listbox columns based on the text size. The only thing I don't know how to implement is including row headers. I don't see a property for setting the row header cell width. Suggestions?
Solved! Go to Solution.
02-09-2011 04:46 PM
Change the ColHdrs[] to RowHdrs[] in the property node, index at column 0 and in the for loop change unbundle to Row instead of Column. DId you try this?
02-09-2011 05:41 PM - edited 02-09-2011 05:44 PM
No, that's not the problem. Think about it, the row headers are actually a column in the table. There is no way to set the width of the "row headers" column in the table. Don't let the property names confuse you
DId you try running it and see the working form? You will better understand the issue if you do.
02-09-2011 06:21 PM
Column = -1
02-09-2011 06:26 PM
@Darin.K wrote:
Column = -1
Let me guess...it's in the context help?
02-09-2011 06:27 PM - edited 02-09-2011 06:30 PM
You'd have to tell me, I just guessed.
Edit: Now that you mention it, the Detailed Help is actually quite informative here.
02-09-2011 08:32 PM
Column = -1 will set the header of the first row but how will iterate through the next header? Will the loop alone will do it if the iteration count increments to second row?
*********
Sorry this just got me curious!!...ofcourse after understanding the problem
02-10-2011 12:43 AM
I do not know if I got your question right...but have tried this.
It will increase row headers width.
Let me know if this is what you want...
02-10-2011 10:15 AM - edited 02-10-2011 10:18 AM
@Gak wrote:
I do not know if I got your question right...but have tried this.
It will increase row headers width.
Let me know if this is what you want...
Yes, it looks like -1 works. I guess I just wont be able to use an autoindexed array and the counter, because the counter is unsigned. I'll just make things easy and have a second for loop to size row headers that does the same thing as my exisiting loop but has -1 wired up to the column index. Also, just a note for you, property nodes are expandable, no need to have another node for width, just drag it down 😉