cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

tab control event link

Solved!
Go to solution

tab control event link

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. 

0 Kudos
Message 1 of 7
(869 Views)

Re: tab control event link

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 )

0 Kudos
Message 2 of 7
(863 Views)
Solution
Accepted by topic author MLH Group TECH
08-27-2015 04:09 PM

Re: tab control event link

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? Smiley Very Happy

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).

0 Kudos
Message 3 of 7
(858 Views)

Re: tab control event link

Wouldn't locals cause a Value change event loop?

Message 4 of 7
(846 Views)

Re: tab control event link

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.

0 Kudos
Message 5 of 7
(844 Views)

Re: tab control event link

 


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.

 

Best Regards,

 

Luis A. Mata C.
Ing. Electrónico
Whatsapp: +58-414-1985579
BBM Pin: 2B83E99A
Thanks: Kudos
0 Kudos
Message 6 of 7
(840 Views)

Re: tab control event link

Always learning.

 

Don't use locals too muchSmiley Wink

0 Kudos
Message 7 of 7
(833 Views)