LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how i can switch between tabs from program

hi,
How can i switch tabs between pages (page1, page2 ...) from program? I am using tab control.
Thank you,
Ranjith
0 Kudos
Message 1 of 8
(3,317 Views)

Do you want to do this programmatically?  if so then you'd use a property node to slect the active page.

Do you want to operator to select the tab at run-time?  Then simply click on the tab while the program is running.

RayR

0 Kudos
Message 2 of 8
(3,315 Views)
thanks for the quick reply...
Yes, I want to control it programmitically. But which property option i have to use. i couldnt find it. Can you help me which property option i should use to switch beween pages?
Ranjith
0 Kudos
Message 3 of 8
(3,312 Views)
Value should do

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 8
(3,308 Views)
Have a look at the attached example.  Run it and look at the front panel Tab 😉
 
RayR
0 Kudos
Message 5 of 8
(3,302 Views)

I would strongly recommend a local variable instead. Property nodes carry a lot of unneeded extra baggage.

 

If the tabs are always under programmatic control and should never directly be operated by the user, you should turn the tab control into an indicator and wire it directly, eliminating the local.



Message Edited by altenbach on 06-24-2008 09:39 AM
Message 6 of 8
(3,287 Views)

[COMEDY ON]

I'm obviously not one of the "Locals"  😉

<inside joke>

[COMEDY OFF]

Completely agree that is the operator will never click on the TAB, then change it into an indicator and wire the desired tab-number directly to the TAB indicator.

I would also hide the Tabs.  It looks better, too.



Message Edited by JoeLabView on 06-24-2008 12:48 PM
0 Kudos
Message 7 of 8
(3,279 Views)
System tabs look like good (on XP)

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 8 of 8
(3,260 Views)