LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control (pages display)

Hi there..i need some help..i use 2 tabs. can i change the tab display according to the function that i choose that shown in the tab.jpg. for more information please refer to the attachement file.i want to change page2 according to the enum function. for example if i choose over voltage in the enum function, so i want the tab display pages2 become over voltage. can i do that by using tab property nodes??..thanks..  
0 Kudos
Message 1 of 6
(4,138 Views)
Hi gdah,

You first need to retrieve the value of your enum through GetCtrlVal.  Then call the SetTabPageAttribute function to set the Label Text attribute, ATTR_LABEL_TEXT like so:

SetTabPageAttribute(panelHandle, PANEL_TAB, 1, ATTR_LABEL_TEXT, value);     // where value contains my new test and 1 represents the 2nd page (i.e. since pages are zero-based).

Best Regards,


Message Edited by Jonathan N on 12-10-2007 09:28 AM
Jonathan N.
National Instruments
0 Kudos
Message 2 of 6
(4,115 Views)
Hi,
 
the picture in the attachment looks kinda like a LabView application. This is the LabWindows/CVI discussion forum Smiley Wink
0 Kudos
Message 3 of 6
(4,087 Views)
hi Jonathan..
thanks for yr advice..1st of all..i'm new for this labview program..i'm using labview 8.1...how can i get the GetCtrlVal in my program because if i'm not mistaken u are using c language in this labview..
0 Kudos
Message 4 of 6
(4,047 Views)
Since you posted your query in the LabWindows/CVI message board, we naturally assumed you were using C and therefore gave you C related answers. You seem (thanks to the keen eyes of Wim!) to be actually using LabView, so you should repost your question in the LabView board, where there are more people with relevant knowledge.
 
JR
0 Kudos
Message 5 of 6
(4,035 Views)
Hello gdah!

jr_2005 definitely had some great advice - since your question is about LabVIEW, be sure to post future LabVIEW questions in the appropriate forum.  This particular forum is for our C compiler, LabWindows/CVI - which also has a Tab Control.  

That being said, this article on our KnowledgeBase details how to achieve a dynamic alteration of a Tab Control's label in LabVIEW.   Furthermore, I put together a quick example for you that I attached to this post. 

I hope this helps!
Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 6 of 6
(4,018 Views)