LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab control page focus

In my VI, I have a tab control and a button. The button is located outside the tab control. When I press the button, I want to perform different operations depending on which page is currently active in the tab control. How can I tell during run time which page of my tab control currently has the focus?
0 Kudos
Message 1 of 3
(2,323 Views)
The tab control has a terminal on the block diagram which acts like an enum. Simply wire it to a case structure, then right click on the case structure and select "add case for every value". You'll get one case for every tab position.

If course you can also use the tab terminal in any other way in your code, e.g. use it with comparison operators, etc.

Message Edited by altenbach on 03-02-2005 09:22 AM

Message 2 of 3
(2,319 Views)
Thanks! That will work!
0 Kudos
Message 3 of 3
(2,307 Views)