LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect when a tabbed page has focus?

Is there a way to set a bool flag when a user selects a tabbed page on
the main screen?

i.e. how can the program detect at runtime which tabbed page is active?

this is for LV7.1

tia

0 Kudos
Message 1 of 5
(2,844 Views)
Just read the control. You can right click on the tab control and select Create Constant and use that as a comparison or since an enum also has a numeric value, compare the control to a U32. The value of the first page is 0, second page is 1, etc. You can also wire the tab control directly to a case statement
0 Kudos
Message 2 of 5
(2,837 Views)
On the block diagram The Tab Control will output what page has been selected. Just wire this to a case structure. See attached vi in LV7.1
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 3 of 5
(2,835 Views)
Sorry there were no replies when I started, got distracted..
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 4 of 5
(2,833 Views)
thanks! works great!

0 Kudos
Message 5 of 5
(2,815 Views)