Tab control color

I posted a similar topic a few weeks ago and I had marked it as solved because I had an individual VI running this block of code that worked. However, once I implemented it into my VI, it stopped working and I have no idea why. What it's supposed to do is cycle back and forth between tab controls and whichever tab control is currently selected will have a different background color. It should change the color of the tab whether it was manually selected or selected by the automatic cycling. I will include the standalone VI, which is working perfectly fine, and the full VI where it is no longer working. Any help will be greatly appreciated. Thank you! (P.S. everything else in the full VI works just fine. The only thing not working is the color of the tabs. Everything else in the event structure works just fine. tab colors auto switch is the working VI.)
Solved!
Go to Solution.
Attachments:
tab colors auto switch_MODCA.vi ‏17 KB
1222OakRoomTabColor.vi ‏219 KB

altenbach wrote:
Next time, continue with (or at least give a link to) the previous discussion. No need to start a new thread with the same subject.
Do NOT mutiliate one of my carefully constructed VIs (with MODCA in the name) and post the butchered version under the same name. This is disrespecful. If you modify a VI, change the file name.
Just glancing at your "oak room" VI, it seems extremely inefficient with lots of duplicate and questionable code. Do you really need to get the tab pages references in three different places? Once outside the loop is probably enough, just branch the wire.
I was thinking of continuing the previous thread, but I thought it wouldn't be such a good idea since I had already marked it as solved. As far as the filename, I apologize. I didn't know that it was disrespectful in any way. Thank you for the suggestions on the code. I am currently working on getting the code to function and then going back to clean it up. Perhaps this isn't the best method, but I am on a tight deadline and this is my first attempt at ever working with labview or any coding for that matter so I am having a bit of trouble with it. 

Similar Messages

  • 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

  • Tab controls eating up CPU time

    A coworker created the section of code in the attached example to change the colors of each tab page in a tab control. Originally, he had this portion of code inside a while loop. We found that as the application ran it would use more and more CPU time until the CPU load was at 100% (it would start around 1-2%); the time for the increase was a few minutes. Moving this code outside of the while loop completely fixed this problem.
    Question: why would setting a tab control color in a while loop cause this increase?
    Platform: LabVIEW 6.1 on Windows 2000.
    Attachments:
    LV_Tab_control.gif ‏4 KB

    This behavior is caused by the repeated creation of page references inside the loop. When you move the Page property node outside the loop you don't see this memory leek.
    The reason for this is that each time the loop executes the property node creates a new set of references. Since these references are always the same, it is best to have this code outside the loop and only get the page references once.
    Zvezdana S.
    National Instruments

  • Difference between dialog tab control vs. Containers tab control

    Other than the fact that the dialog tab control color is controlled by widows. Does any one no what the differences are between the two is there any advantage to using one over the other?

    Hi,
    Are you referring to the tab controls found under the 2 different controls palettes: Dialog Control and Containers? If so, then here is a KB that describes the difference between the different controls that are available in LabVIEW:
    KB 2X9ELOLD: What is the Difference Between 3D, Classic (2D), and Dialog Controls in LabVIEW?
    Just for clarification, the Dialog controls are not controlled by Windows (or any OS). These controls are just made to look like the native controls of that OS. When deciding between which controls to use, the Classic and Dialog controls have less overhead so it will be in your interest to use those controls if you don't mind the more traditional look-and-feel of those controls.
    Thanks again!
    Kileen

  • Tab control background color matching

    I have a system style tab control.  I realized the when the program runs in exe mode, the background color of my label on the tab control doesn't match the backgound color of the tab control.  The background color of the tab control is different between exe mode and development mode.  Anyone help? How do I match the color?  Thanks!
    Kudos and Accepted as Solution are welcome!

    Problem is solved on another post.  Thanks!
    Kudos and Accepted as Solution are welcome!

  • Tab Control - change page name and color

    a)
    Is there any possibility to
    change the names of pages in a Tab Control programmatically?
    (I want to change the names in a runtime version depending on the user
    selected language. Therefore I can't use the Import Strings function.)
    b)
    Is it possible to change the colors of a Tab Control ?
    Robert
    (using LV6.02 on WinNT)

    Hello,
    If you use the property "Independant Label" of the tab, you can change the TabCaption.
    You cannot use blank names.
    See attached file. It was written with LabVIEW 6.1 and converted back to 6.0.
    Attachments:
    Change_Tab_Page_Name.vi ‏15 KB

  • I use LabView 6i and I use Dialog Tab Control, but I can't put colors on it, some one try it before?

    The Diaglog Tab Control works very well, but I could not paint it with Front Panel tools or with its property. Any one knows about this, thanks!

    THANK YOU!!! I have spent hours searching for the answer to this question. I didn't realize that there were two different tab controls! This is just another example of why I use NI products and software. Where else will you get this kind of product support.
    Dave Green
    Process Systems

  • Can I individually change any of the attributes of an individual tab (not the page) on a Tab Control?

    I have a Tab Control with approx. 15 tabs. After the user changes anything (adding text, changing a ring control, etc. ) from the default configuration on any of the 15 tabs, I would like a change to that individual tab only (say color change, text change, anything) so when the user sees all 15 tabs, they know what tab page has had changes to the defaults.
    I appreciate your help with this one!
    (Note: I tried using a imported bitmap control of a red checkmark - and use true/false to an
    visible property node -this only works when placed in any of the Tab control pages, but not on the individual Tab itself.)
    -Karl H.

    Karl,
    I have attached a LabVIEW 6i example to this post that indicates with an LED if the control on the Tab has been changed from its default value. I used the classic LED's to make them invisible when the value is still the default. Hope this helps.
    Attachments:
    tabcontrol_default.vi ‏27 KB

  • Tab control doesn't highlight when tabbing

    I have to navigate through my application without a mouse, using the tab key, return key, etc. As I tab through the controls I've noticed that as a control receives focus it is outlined with a black box. This doesn't seem to be true, however, for the tab control. Is there someway I can get the tab control to be highlighted when it receives focus via the tab key?

    There are ways you can do it by using attribute nodes. You can monitor the tab controls attribute node to see if it is in focus, then change color, size, or display the page, etc. Here is an example.
    Attachments:
    Tab_control.vi ‏28 KB
    Tab_controld.png ‏4 KB

  • Tab control does not show up

    Hello, I am still using Labview V8.21 on XP.  I know, I know, should be using my 8.6 but do not have a DVD drive.
    Anyway, I am trying to do some support on a VI originally written in V6.1 and updated to V7.1   The problem is, there is a tab control on the front panel that will not show up, it is on the block diagram, labview will not really find it, but thinks it is still there, the front panel is just blank and really big.  Looked all over, nothing on the front panel.  Any ideas why this would happen or how to get around rewritting the whole VI?  I doubt a rewrite will occur, as a company we have moved to .NET and the product will probably be either discontinued or redone in .NET if I cannot get a work around here.
    thanks.

    cannot color the control or the VI to make it show up.  Here is a post, this is a big VI and alot of error will show up as I am not posting the whole thing, just the TL vi that has the tab control problem. 
    This is one thing that made me leave Labview, all eggs are in the VI basket, if it fails, you are done, unlike .NET that you can open the source with a text editor if you have to.
    Attachments:
    ST_TL.vi ‏2071 KB

  • Tab control colour

    Hi All,
    A annoying problem ive come up against. Why is the colour of my tab control different to my background and cluster colour? They are supposed to be all the same. I used the 'Get Colour' tool and applied the colour to all items. I have attached a vi (LV8.2) to demonstrate this. Any ideas?
    Attachments:
    tabcontrol_colour.vi ‏7 KB

    This is a great question. I have studied the differences and can visibly tell exactly what you are saying. Nevertheless, there are colors which look the same.
    For a good grey use: 12369084
    There are other colors that I was able to find.
    However, the best thing to try is this: If you want the Cluster to be the same color as the tab control, make the background of the cluster transparent. When you are changing the color hit the space bar to select between border and background and hit the the "T" in the top left corner of the color change box.
    I hope this helps,
    Rick Kuhlman
    Applications Engineering

  • Background image tab control

    i use labview 8.20
    is it possible to add a background image to a tab control ?
    i only see, that i can change the color. or change the background image from the complete background.
    but i dont't want to make my tab control transparent, because then i can't see the registers (tabs with the text) of the tab control.
    is there a solution ?

    I do not believe that you can do it directly. You could add a picture control to each tab and place it behind the controls and indactors to achieve the same effect.
    Tim
    Johnson Controls
    Holland Michigan

  • Modifying tab control behavior

    I have been toying around with a tab control trying to customize it to
    suit my needs.  I currently have a tab control with a transparent
    background (since it is within another tab control, and I find it looks
    far better without any borders or anything) that cotains 4 tabs.
    I'm wondering if there's any way to change the colour of the different
    tab texts, based on the selection.  For instance, if you click on
    tab A, which has the text "TAB A", is there any way to change the
    colour of that (and only that) text?  As it stands, it's somewhat
    difficult to distinguish from the other tabs, since all of the tab
    outlines are transparent, the text only shifts to the left a little.
    I've played around with the properties, but with no success.  I
    feel like this probably isn't possible, but if anyone has any other
    ideas of how to distinguish the text, I'm all ears (or eyes I guess).
    Thanks for your help.

    Two suggestions: either hide the tabs and create other buttons to handle the switching of your tabs (what I do when I want to create a more elegant interface where tabs "don't make sense") or change the FP colors of all the other pages. That way only your page will have a transparent background and it's label will stand out.
    Try to take over the world!

  • How open tab control, by click on an object?

    Hello
    I have a problem with labview, can you help me?
    I want open a tab control object, to import some property in an array. but, I want open it, when I click on an object like a tank.(actually, first, it is invisible and by click on the object, will be visible)
    how can I do it?
    I think, I can do it, with a push button or a switch with same size to a tank or any object I use, but with invisible color! is it possible or any new suggestion?
    Best Regards
    Solved!
    Go to Solution.
    Attachments:
    active_click.jpg ‏210 KB

    I know what a tab ontrols is, I just did not understand the "open" part. A tab control is not something that can be opened or closed.
    Numbers are the values of the array. The word properties does not sound right in this context.
    As I said, you can use an event structure. Create a mouse-down event on the tank and change the visible property of the tab control when it happens..
    LabVIEW Champion . Do more with less code and in less time .

  • How to create an invisible tab control

    In his excellent book, The LabVIEW Style Book, Peter Blume advocates the use of an "invisible tab control". His front panel, while consisting of a large tab control with several headings that can be clicked, shows absolutely no framing around those headings or around the control as a whole. I have not been able to do it. Except: just now, while clicking around with the color tool, I did it by accident. The entire frame of a "Modern" Tab Control vanished, leaving nothing but the page titles showing! But I don't know what I did, and I cannot do it again. Please, how do you do that?

    hi,
    in front panel -->  press "shift" and right click. and you will get color control.
    Then select the last option. that is brush.
    right click the object you want to make it invisible. then go to "T" in the top. then press "SPACE BAR" in your keyboard. then you can find the bottom of the pallet. there will be a big " T". Befor that there was 2. now only one. It means fore color ang back ground color. it will make the complete control. invisible.
    Check it out...
    <<Kudos are welcome>>
    ELECTRO SAM
    For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
    - John 3:16

Maybe you are looking for

  • Page numbers in page panel don't match current page numbers

    Hi all, I have been working with InDesign for a decade now and never had this problem. I created a document in InDesign CS 5.5, very simple and with consecutive pages, no sections etc. My page numbers show up correctly on my spreads. BUT, for some re

  • Why can't I download my acrobat pro subscription?

    I just purchased Acrobat Pro and it will not download -- help!

  • HT5234 Macbook Air Power Adapter

    Ok, I have just bought a brand, spanking new Macbook Air 13" and sold my 15" Late 2008 Unibody Macbook Pro to a friend. The thing is, I now have a spare MacBook Pro charger (kept the original at home and had a spare at the office). Can this spare Mac

  • Report colors

    Hello team, i have one more question ... I have a siple SQL report. f.e. a list of all emp's [email protected]> select * from scott.emp; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO 7369 SMITH CLERK 7902 1980-12-17 00:00:00 800 20 7499 ALLEN SALESMAN

  • Group by month of the date

    I need to generate a report based on the month of a date field.its look like month arrived patients May 100 june 129 July 154 How can i write the group by select command on the field of a date. Kindly help me.