LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab control

Hi all,

I have a tab control with 3 tabs. I was wondering how I can do the following:
1. I want to show only 1 page of the tab control without the tab header name when i start the program.
2. When i hit ctl + shft + , I would like my tab control to display all 3 tabs with the header.
3. When i hit ctl + shft + , I would like my tab control to display only the first tab with no header.

Has this ever been done? Can it be done?
0 Kudos
Message 1 of 12
(3,563 Views)
Use the property node to set the page selector visible property.
You can use the event structure to create your logic
Greg Bush CLAD
0 Kudos
Message 2 of 12
(3,552 Views)
The event structure could be problematic for detecting clicks on multiple keys. Here's a quick and dirty program which should do the trick.

___________________
Try to take over the world!
0 Kudos
Message 3 of 12
(3,545 Views)
hi tst,

I am having difficulty in running/understanding your example. Please explain.
Thanks for the help.

Peter
0 Kudos
Message 4 of 12
(3,541 Views)
Here's an example with an event structure and property nodes.
Message 5 of 12
(3,540 Views)
hi Dennis,

I am running LabView 7 and can not open you tab.vi example. Please save it so I can run it under LV7.

Thanks,
0 Kudos
Message 6 of 12
(3,534 Views)
Since you wrote "+" twice my version uses control+shift+something (in this case the letter 'A' (65)). I'm using a DLL function called GetKeyState which identifies the state of different keys. This has the advantage of getting all three at the same time, but the disadvantage of running all the time and of being windows specific. You can modify it. You can also use Dennis's version with slight modifications or as it is.

___________________
Try to take over the world!
0 Kudos
Message 7 of 12
(3,529 Views)
Here's Dennis's version, modified slightly and saved in 7.0.
Now it requires another key with control and shift. A is 65, B is 66 and so on.
This is better than my version.

___________________
Try to take over the world!
0 Kudos
Message 8 of 12
(3,514 Views)
Sure. It doesn't do exactly what you want but should be simple to modify. To control individual tabs, you use the read only property pages. This returns an array of references. You use an index array function to get a specific page. For example, if you want to manipulate page two, index element 1 of the pages property. The returned reference can be used to create properties for just page 2.
0 Kudos
Message 9 of 12
(3,380 Views)
hi Dennis,

I like your example. However I already have a while loop running my program. How can I fit your code into my program. Basically I am asking can I run 2 while loops. One for my program and the other for any time someone enter ctl + shift + A.

thanks,
0 Kudos
Message 10 of 12
(3,501 Views)