I am working on a program that requires me to link two different tab controls. I was trying to implement an event case but I dont know how to get it to link page 1 of control 1 to page 1 of control 2, page 2 of control 1 to page 2 of control 2, etc... Any help would be greatly appreciated.
Solved! Go to Solution.
Your just looking at the wrong event. the value of a tab control is which tab is displayed so we only needed to look for Value change events and set the value property of the other tab (with a property node using the value property so it doess not trigger another event )
I'd recommend a local variable instead of the value property node.
Of course I don't quite understand why you don't simply use a single tab control that is twice as wide, for example?
What is the idea behind all that extra code?
Also, you could make one tab control the master and turn the other one into an indicator. This way only one can be operated, but the other will always follow if they are wired together and placed in a value changed event. (Hide the tabs on the second one).
Thanks, I didnt think of just making the 2nd control an indicator. That worked like a champ. The one set of tabs will be used for setting the controls, and the second set of tabs will be used to display graphical information. problem solved.
Jeff Bohrer escribió:
Wouldn't locals cause a Value change event loop?
No, the only way for trigger a event from the code is using a Property Node and write Value(Signaling) property.