10-01-2012 03:26 PM
Actually that plan worked out. The trick for me as a noob was placing my copying code inside the appropriate event structure.
I found there is an event for Tab Control - Value Change. I made 2 event dependent cases to match the 2 tabs with the controls I want to manage ( Read & Write Serial). I placed property value copy commands from Control 1 to Control 2 inside the event structure when the tab control value becomes a new value of "Read" and copy commands for Control 2 to Control 1 when the tab control value becomes a new value of "Write".
A picture can tell up to a thousand words - here's one:
Hope that helps,
Chris
10-02-2012 09:58 AM
@El_Penguino wrote:
Actually that plan worked out. The trick for me as a noob was placing my copying code inside the appropriate event structure.
I found there is an event for Tab Control - Value Change. I made 2 event dependent cases to match the 2 tabs with the controls I want to manage ( Read & Write Serial). I placed property value copy commands from Control 1 to Control 2 inside the event structure when the tab control value becomes a new value of "Read" and copy commands for Control 2 to Control 1 when the tab control value becomes a new value of "Write".
A picture can tell up to a thousand words - here's one:
Hope that helps,
Chris
Very cool. I'm glad you found your path forward. 🙂
10-04-2012 05:17 PM
@El_Penguino wrote:
Actually that plan worked out. The trick for me as a noob was placing my copying code inside the appropriate event structure.
I found there is an event for Tab Control - Value Change. I made 2 event dependent cases to match the 2 tabs with the controls I want to manage ( Read & Write Serial). I placed property value copy commands from Control 1 to Control 2 inside the event structure when the tab control value becomes a new value of "Read" and copy commands for Control 2 to Control 1 when the tab control value becomes a new value of "Write".
A picture can tell up to a thousand words - here's one:
Hope that helps,
Chris
Locals are more efficient than Value Properties, so if you're going to go that route, I'd use locals.
What I'd really do though is use nathand's approach.