Tab Controls - Adding a page programmatically?

It's probably not possible from what I've read on this forum, but I would really like to be able to add tabs
programmatically (v6.0.2). But, having just read that they are like enums and are read only (can't change
page names) it looks like this is going to be an unfulfilled desire.
Though what I want to do can probably be done easily enough using hidden tabs it's annoying to not be able
to control the order of the tabs nor the text. I don't want to have anything on the pages but just want
to have the tab control there for switching between what is displayed in another control.
Thanks,
Naveen

No, unfortunately, you cannot add pages programmatically to a tab control. The best you can do is add as many pages as you would ever possibly want at run time when you are building your tab control. Then use the visible property for the pages to determine how many are displayed at any time.
Matt Kisler
Applications Engineer
National Instruments
http://www.ni.com/ask

Similar Messages

  • Tab control with 2 pages

    I want to create a Tab control with 2 pages, in each page there are 2 buttons - "OK" and "Cancel".
    If on Page1, "OK" is clicked, Page2 will be disable and greyed, until "Cancel" is clicked. And vice-versa for Page2 buttons.
    How to do this?
    Thanks in advance...
    Solved!
    Go to Solution.

    Hi Splee,
    Please view the attached vi, I believe it's doing what you've asked. You can invoke properties using property node in order to change the value of variables.
    Hi Simply_me check your Vi will it really works. To make this VI in working condition you have to do some more coding in your code.
    Check your page selection technique.
    Hi Splee,
    First you have to find out on which Tab Page user clicking the buttons, the all operations you have to do on other page.
    Once your page is disable you can't access the controls of that page. As Geeta says make a code using event structure with Tab Control property and invoke nodes. 
    You have to do some coding to achieve your requirements.
    Thanks and Regards
    Himanshu Goyal
    Thanks and Regards
    Himanshu Goyal | LabVIEW Engineer- Power System Automation
    Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
    It Only gets BETTER!!!

  • Tab control in a Page / Region

    Hi,
    Does Apex support a tab contol inside a page or a region ?
    (Not page level tab, as an item like Text box , check box)
    If not, is there any method to simulate the same functionality using code?

    Hi Tine,
    That worked fine and Thanks for such a nice and simple solution.
    But one more query, For Eg: My list contain 2 Tabs "Employee" & "Department" and my list name is "TabList" . And I have 2 regions, one is report from emp table, and the other one from dept table. How can I hide the names of Regions, so only Tab names Employee & Department will be displayed.
    When Employee tab is pressed its giving me the report , but it again displays region name. so how can I suppress the region names.
    I was looking for something similar like this :
    http://apex.oracle.com/pls/otn/f?p=200801:2005:989706801852805::::::
    Regards,
    Benseer

  • Highlighting current page on Tab control

    Hi!,
    I am using tab control with 7 pages. The page names are all in the same colour. Is there any way in which the colour for the name of the current page can be made different from the rest?
    If your answer involves property nodes (or more advanced techniques) please be descriptive as I am beginner.
    Also, which is the best book for inside stuff on property nodes?
    I am using LV-PDS 6.1
    Best wishes and thanks,
    Gurdas
    [email protected]
    Gurdas Singh
    PhD. Candidate | Civil Engineering | NCSU.edu

    > Is it possible to assign the same keyboard key (to all buttons) such
    > that pressing it will do the job of clicking the current active
    > button? I would prefer this key to be the 'space bar'.
    >
    > The application allows only one hand to be free. The other hand will
    > be used to place test component and rotate it manually below the
    > sensor. Thus, such a feature makes the user's task very easy. He just
    > keeps clicking the space bar until the vi ends.
    >
    It isn't possible to assign a key to more than one control, since then
    it would be pretty unclear which control should out-of-the-blue receive
    the key. It is possible to catch key events and perform and action
    based upon the key press. Another option is to set
    the key focus to the
    next logical button in your progression. If the focus is set to a
    button, then the space bar, enter key, etc all work.
    Since you are asking for comments, the UI you describe sounds a bit odd
    to me. A sequence of buttons that the user is required to click in a
    given order? You might want to compare this to an indicator showing the
    stage and current results, and one more button that says Next. Tie the
    key navigation shortcut to the single button, and each button press
    moves to the next stage. You might want to add a Cancel or Stop button
    if there is ever any need to break out of the sequence. Finally, this
    is pretty close to a wizard that allows the user to go both directions.
    If it makes sense to reverse and redo a step, add that button too and
    you have a very standard UI.
    To build a wizard, use a tab control with a page for each stage. Hide
    the tabs, and modify the pages by adding or subtracting on the value.
    Greg McKaskle

  • Tab control Output value to be display in other pages

    Hi guys
    I hava a VI using a tab control with multiple pages. The 1st page will have some calculation and give an ouput ,x.
    Then i will proceed to the 2nd page to perform other action, however i need the input automatically from what i have acquired in the first page, which is x.
    My problem is that i could not link up this output from the 1st page and send it to the 2nd page. 
    I thought it should be a reliatively simple but i am stuck in this. Please help me
    Cheers
    PX

    Hi pengxin,
    do you mean, you want to see x on all pages? If yes, then don't palce x inside the tabcontrol. Just add it to the front panel and move it with the arrow keys over the tab control.
    Mike
    Message Edited by MikeS81 on 03-25-2010 02:18 PM

  • Can I control pages in tab control with case structure?

    Hi there!
    I'm quite new to Labview and my company wants me to make some programs for testing of electronics. I'm currently working on the GUI and I would like to control three pages in a tab control with buttons.
    I only got the base package of Labview 2009 so I can't use Event structure.
    If you open my .vi you can see I have a tab control with three pages. In the first page I got a "Start" button that should open the next page in the tab control. In the middle page I have a "Tilbake (Back)" button that should go back to the previous page. The button called "Lagre (Save)" should work as a next button and go to the last page. On that page I have a "Tilbake(Back)", "Ny test(New test -> go to first page again)" and "Avslutt (Quit)".
    The buttons under the tab control where something I copied from an example just to try out. That works perfectly, but I cannot edit the Event Structure from the example.
    Is this possible to solve with Case Structure? Or maybe there are other solutions? Feel free to edit my .vi if you like
    Thanks for the help!
    Regards,
    Even Myhre
    Test engineer
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway
    Solved!
    Go to Solution.
    Attachments:
    Test GUI.vi ‏29 KB

    Hi again!
    Well it solved my problem, but I got a strange error while running my program.
    When I press "start", the tab control changes page. When I press "tilbake(back)" it is totally random how many clicks it is necessary for it to change back to the first page. It can be from 1 to 20-30 clicks. Which is very strange since all other navigation buttons works perfect. "Tilbake(back)" button on the last page works correctly and has the same structure as the "tilbake(back)" button on the middle page.
    I have tried all the different options on how the button will response on a press.
    Regrads,
    Even
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway
    Attachments:
    Test GUI2.vi ‏28 KB

  • Tab control bug?

    I have a problem with tab control which has been bugging me for a long time and i can't seem to solve it.
    I have a tab control with 4 pages, A, B, C and D. All these pages are invisible at the beginning. Once the user selects the page from the custom run-time menu, the appropriate page then showns up (PageVis=True). Now, when i try a few more times switching between different pages, some pages showns up together with the intended page. Once i click the correct page's tab, the others disappear. Now this is a problem because when a user is using page A, i do not want he/she to be able to access other pages.
    Can someone help me before i kill someone? Thanks.
    Attachments:
    tab.JPG ‏27 KB

    The order of the property nodes is not defined because you have no dataflow between. Execution order is not defined by where a function is on the block diagram (left, right, top bottom), but how data is connected. You have no connections between the properties so they execute in parallel and you have no way of knowing which one will actually execute first. The simplest way to enforce dataflow is with the error in/error out connections. That is shown below. also shown is one way to select the active page. I used a local variable but if you make the tab control an indicator instead of the default control, just wire a value to the terminal itself.
    Message Edited by Dennis Knutson on 07-26-2007 08:16 PM
    Attachments:
    Tab Control.PNG ‏13 KB

  • Error in Nested Tab controls

    I seem to have found a bug in nested tab controls. If one nests a tab control in a tab control, the remove page uses the index of the parent tab control to determine which tab to remove of the child tab. I use Labview 6.1 on Win2000.
    In addition, it seems that I cannot add a tab control to a cluster. This seems to be a "feature".

    Jazee,
    Apparently, this seems to be a bug for nested tab controls.
    You can't add a tab control to a cluster.
    You can keep the value of the actual choosen tab in a cluster by converting it to a number and put that number in a cluster.
    Cyril
    Cyril Bouton
    Active LabVIEW Developper

  • Tab control crash

    I was playing with tab control and I saw this crash. No code in block diagram. I added tab control, added couple of tabs, deleted 1 tab and then I saw this crash.
    Thanks.
    CVI 2010
    LabVIEW 2011 SP1
    Vision Builder AI 2011 SP1
    Attachments:
    LV Crash.zip ‏30 KB

    error report is attached in zip file.
    Just like other crashes this crash is not reproduceable.
    Thanks.
    CVI 2010
    LabVIEW 2011 SP1
    Vision Builder AI 2011 SP1

  • Events & Tab Control Navigation Buttons

    In the attached example, I use a Tab Control with several pages, some of them being hidden.
    To access them, I use the navigation buttons on the top right corner of the Tab.
    Unfortunately, changing the pages using these navigation buttons does not trigger a "Value Change" event as it does when changing by clicking on the desired page.
    This is visible in the upper control that is updated with the page name when the "Value Change" event is triggered.
    How can I have the TabControl also triggering the "Value Change" event when selecting the pages with the navigation buttons ?
    Attachments:
    TabControl.vi ‏26 KB

    That's a good one, NI should have made the control fire the value change event in that case too. You could make a timeout event and check the value there (and fire an event for it if you wanted) but that's not very elegant. Personally I would go for multiline tabs, it's not often you see a tab with a scrollbar like that so the user's would probably find it more intuitive to have multiline tabs or another level of selection.
    MTO

  • Tab control problems

    I made a peogram to look at the file name back and forth. seefile.vi works great. I also need to do further work after seefile.vi. I created TAB control with two pages. Simply I duplicated seefile.vi (page 1) as page 2, which is seefile1.vi as attached. Now I can not run it right. The problem is Next Buttorn can be used once and then it is running for ever.
    If I delete all content in page 2, it works great again. My question is what in page 2 can cause Next Button in page 1 frozen??? Or I did not figure TAB control right.
    Attachments:
    SelectFile.vi ‏44 KB
    SelectFile1.vi ‏218 KB

    I don't see any Tab control, I don't see page 1 or page 2, I don't see a Next button, and I don't know what you're talking about. You will have to do a better job at explaining what it is that you want. Also, in one of your block diagrams, you have a loop condition with a False wired to the Stop sign. This will cause your vi to run forever.
    - tbob
    Inventor of the WORM Global

  • Const from a 'tab control typedef' crashes lv6.1

    LabView crashes with 'failure: datamgr.cpp line 2854' if I do the following:
    1/ Make typedef of a TAB Control
    2/ Place this typedef control on front panel
    3/ create Const on diagram (also depends on typedef)
    4/ change in the typedef the 'tab control' (change a page name)
    saving this new typedef vi will crash LabView
    (as if the const can not be updated correctly)
    Seen on Win98 and Win2000. LabView 6.1
    (Labview 6.0 doesn't allow "custimise control" with TAB controls, so here no errors)

    Verified on XP:
    Failure : "datamgr.cpp", line 2854
    Have you reported this to NI, or checked out www.ni.com/failure ?
    Copyright © 2004-2015 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 2.5 License.

  • The waveform chart in the tab control

    Hi,
    I'd like to change the plot number and the plot name of a waveform chart in a tab control.
    First of all, it works fine without a tab control, but I have many charts(such as temperature, pressure, voltage...) so that I put each chart into the pages of a tab control.
    Error 1077 happened when I "add" the plot number and change the plot name.
    The following is a sample I made to describe this problem.
    Let's begin if the number is 20, so there are 20 plots in that chart in page 2.

    Do not turn on the switch, change C to 3, minus N to 18, and run it and it can be seen that the tab control will switch to page1.
    Switch to page 2, and the plot names are updated but left some relic.
    Add N to 22, change C  to 2, and run it again.
    Error 1077 happened! Switch to page 2, and the plot number is still 20, and the plot names are updated to 20.
    Run it again, and it works fine!
    It is very tricky for me.
    If I switch to the page 2 first and run the program, it works fine too.
    (That is, if the switch is turn on, then the program works fine.) 
    The LabVIEW version of mine is 2011.
    I'm not sure I missed or misunderstanded something about this problem.
    Does someone can give me some suggestion? Thanks a lot
    Solved!
    Go to Solution.

    Hi, Bob_Schor,
    I'm sorry my poor expression confused you.
    All I want is to demonstrate that the chart in the 'hidden' page of the tab control results in the error when the user tried to add plot number and change the plot name.
    To make a scenario more specific, there is two pages in a tab control, one is for setting, the other is for the plotting.
    When the user change the channel configuration, the chart is going to change correspondingly.
    If I'd like to change the plot number and plot names, there is possiby a problem when staying in the setting page.
    I hope I do not mislead you to the wrong direction
    You're right I should make the parameters more clear to facilitate reader understand my purpose easily.
    Switch True means switch to the chart page before the modification of the chart, and return to the first page after the modification. Switch False means stay in the first page while the chart is modified.
    C is used to make the plot name different among each execution. If the plot names of the chart in the previous execution are [101, 102, 103, 104, 105], and I'd like to decrease the plot names to three items [101, 102, 103], but in the case of the false switch, it will be [101, 102, 103, 104, 105], it is hard to tell if it is really updated. I can change C to 2, and the plot names in this execution will be [201, 202, 203, 104, 105], it could be shown it is updated indeed but left some unexpected plot names[104, 105](I call it relic...).
    N is just the plot number the user can increase or decrease it.
    I'm afraid of being the guy you mentioned...
    Like my original post, I probably have several charts to show their results(temperature, pressure, voltage...) so that I make a tab control of 6 pages, and put a chart in each page. The user can also determine the channel numbers of each kind of measurement before the acquisition. I didn't think too much about it(actually now I still have this direct simple idea only...), what would you do if you have to show these data? Very thanks to your reply

  • Tab control page label change color programmatically

    Hi everybody!
    I have a question about a tab control.
    I'm trying to figure out a way to programmatically change the  properties of the tab labels so the selected tab's label looks different to the others.
    I'd like to do this by changing aspects of it's font and it's color. But I can't find out how to access it either directly or by reference.
    I can get at the label string so if all else fails I could make the selected one all capitals!
    Am I missing something, or is this one of those things which can't be done?
    I'm using Labview 11.
    Regards,
    Jonathan.

    The link still works for me!
    Search the forum for "Tab Color".
    This does not change the text, but the tab color which is what I do to high light the selected tab.
    I use dark gray and light gray to help the user tell which tab is "active".
    Not exactly what you wanted.
    http://forums.ni.com/t5/LabVIEW/How-can-I-change-the-font-color-size-of-tab-controls/m-p/967920/high...
    http://forums.ni.com/t5/LabVIEW/Programmatically-changing-page-color-in-a-tab-control/m-p/840699/hig...
    http://forums.ni.com/t5/LabVIEW/tab-control-color/m-p/3062557/highlight/true#M873360
    Omar

  • Change the pages of a TAB control programmatically

    How can I change the pages of a TAB control programmatically, but not by pushing the tabs in Front Panel when program runs?

    100% correct, Thanks
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

Maybe you are looking for

  • What is the difference between ojvm and client versions?

    Changing the java vm from client to ojvm result in the following error: Errormessage: java.lang.UnsatisfiedLinkError: no UniqueC in java.library.path Project Settings -> Configurations -> Development -> Runner -> Virtual Machine -> ojvm FAILS Project

  • Column Group Values Function without using Analytics?

    I'm looking for a out-of-the-box Oracle SQL function that will visually group column values. (As shown in the Department column below). I know that you can accomplish this using analytic lead/lag functions (also shown below), but I figure there must

  • InDesign CS5: Why do hidden codes turn from blue to red?

    InDesign CS5: I have a 20 page indesign document file that is part of a 23 document/chapter InDesign book. The hidden codes are light blue through chapters 1 and 2. Then, in the middle of chapter 3, at the bottom of the 10th page, the hidden codes tu

  • Can I desynchronize one station with batch process model?

    Hi, My project has 5 stations run test in parallel. I decide to use batch process model since I want them to start and stop together. Beside start and stop, I have some certain part in the test sequence need to sync together. But in 5 stations, I wan

  • Exciting! BT Infinity being rolled out - could I h...

    Hello, I've been watching excitedly as the FTTC has been rolled all over our town (Ramsbottom) and the new Huawei cabs are being put in place. Hoorah. We are due to get Infinity in Q1 2011 and it's looking great. Our nearest cab is being installed to