取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 8 条)
3,521 次查看

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 项奖励
2 条消息(共 8 条)
3,519 次查看
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 项奖励
3 条消息(共 8 条)
3,516 次查看
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 项奖励
4 条消息(共 8 条)
3,512 次查看
Have a look at the attached example.  Run it and look at the front panel Tab 😉
 
RayR
0 项奖励
5 条消息(共 8 条)
3,506 次查看

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
6 条消息(共 8 条)
3,491 次查看

[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 项奖励
7 条消息(共 8 条)
3,483 次查看
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 项奖励
8 条消息(共 8 条)
3,464 次查看