02-28-2012 10:25 PM
I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.
02-29-2012 07:31 AM
@jyang72211 wrote:
I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.
The tab controls are very similar to enums so try using an enum instead of the tab control.
Re: the BUG
Yes, the type def is failing to update and the only work-around I could find was to toss the tab controls. I'll try to get an App Engineer to look into this but I can confirm the bug.
Thanks for sharing!
Ben
02-29-2012 09:14 AM
02-29-2012 09:55 AM
@jyang72211 wrote:
I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.
How did you even get the tab control inside the cluster? That's not supposed to be allowed, and is quite possibly the source of your problem.
02-29-2012 09:57 AM
@tst wrote:
@jyang72211 wrote:
I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.
How did you even get the tab control inside the cluster? That's not supposed to be allowed, and is quite possibly the source of your problem.
cite source please
02-29-2012 10:10 AM
@tst wrote:
@jyang72211 wrote:
I have the tab controls in my cluster, because I use it in my main program, and I would like to save the tab selected in the cluster.
How did you even get the tab control inside the cluster? That's not supposed to be allowed, and is quite possibly the source of your problem.
I knew they looked strange in the cluster but failed to recogize htat as being illlegal.
I am alos curious how it was done since I can't trick LV into letting me repeat that feat.
Jyang,
Can you give us a clue?
Ben
02-29-2012 10:39 AM
I'd also be interested in knowing how this was done. There is some good discussion as to why this isn't a feature of LabVIEW in this thread.
02-29-2012 10:54 AM - edited 02-29-2012 10:55 AM
@JÞB wrote:
@tst wrote:
How did you even get the tab control inside the cluster? That's not supposed to be allowed, and is quite possibly the source of your problem.cite source please
If Zach's link wasn't enough for you, you can also turn to LV itself - try to do in manually and it won't allow it. Try to do it programmatically and you get error 1060 - Object cannot contain (own) the specified object. I think that's pretty authoritative.
P.S. Personally I wouldn't mind if it was allowed, although not for UIs - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-clusters-to-have-quot-pages-quot/idi-p/1481862
02-29-2012 12:09 PM
I make the tab control into a type def and put it into a type def cluster. I am not sure can I repeat this, but that was what I did.
02-29-2012 12:27 PM
@jyang72211 wrote:
I make the tab control into a type def and put it into a type def cluster. I am not sure can I repeat this, but that was what I did.
Did you by any chance do that in an earlier version of LV?
I tried that as well and could not get it into the cluster.
Curious,
Ben