How can I programica​lly change the background color of one VI using another VI?

Is it possible to change the text background color of an indicator on the front panel of one VI from a different VI? 
Solved!
Go to Solution.

Hi Coutts,
Good Morning and I hope your well today.
Thanks for the kudos and marked answer.
You can alter the controls/indicators fonts etc.
You need to get a reference to Controls[] which includes all controls and indicators on a VI. 
Then I have created an array of their Labels.Text - so we know which reference is which.
With a single reference you can then access properties such as label.font where you can alter if the label is
Bold, Unerline,size and colour...
Notice I have selected to Bold and Underline the label of the controls and indicators - and they appear bold and underlined. 
I have re-attached the modified code.
Hope it finds you well, 
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help!
Attachments:
setter.vi ‏22 KB
other VI.vi ‏5 KB

Similar Messages

  • How can I change the background color in text box using RGB format

    Can some one tell me if Mac Pages (version 5.0) allows users to customize the background color of a text box using RGB color format?  It appears that the text color can be changed using RGB but background color is limited to a few standard colors.   Thanks

    They are just sample swatches, use the Color Picker to choose anything you want.
    Peter

  • How can I change the background color in the inbox?

    The background color in my inbox (well, all mailboxes) is white. A yellow background would make the existing black text a lot easier to read. How can I change the background color in the inbox?

    Themes work in Thunderbird - duggabe was not refering to Firefox.
    Another useful addon is theme and font changer:
    * https://addons.mozilla.org/fr/thunderbird/addon/theme-font-size-changer/
    However, Thunderbird allows you to modify all sorts of things.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    Help > Troubleshooting Information
    Click on 'show Folder' button
    a window opens shwoing profile folder name
    Close Thunderbird now - this is important
    In the profile name folder, Create a new folder called '''chrome''' - note the spelling
    It should be in the same place as the 'Mail' folder.
    see first image below.
    Open Notepad
    Can be located : Start > Programs > accessories
    Copy everything shown between the lines below.
    Paste into Notepad.
    Save as '''userChrome.css''' - note the spelling (edit updated - this was a typo error)
    This should be saved in the '''chrome''' folder.
    see second image below.
    Restart Thunderbird.
    I have chosen a yellow for you
    <pre>
    #f6f58c = a yellow....it is a hex code for a colour.
    </pre>
    You can change it if required. Remember when updating anything in the profile folders, you must close Thunderbird first.
    More info on colours.
    * http://www.yourhtmlsource.com/stylesheets/namedcolours.html
    <pre>
    * Do not remove the @namespace line -- it's required for correct functioning
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    /*Background colour for message list*/
    #threadTree > treechildren::-moz-tree-row {
    background-color: #f6f58c !important;
    </pre>
    -------------------------------------------

  • How can i change the background colors on my iphone. The new white is hard on my eyes. I dont care for the grey boxes either.

    how can i change the background colors on the new update? I find the white a bit much. Also is there anyway I can change the grey boxes they seem out of place.

    That makes me sad. thannk you

  • How can i change the background color in the mobile windows adobe reader app? i want to change it from black to white but don't know how.

    really want to change the background color of my documents in the mobile app. ive tried to search the answer online, in blogs and other various 'life hacks' blogs or articles, but so far everyone is talking about the desktop version. i really want to figure this out. is there even an option for the mobile version for windows? the only editing icons when a document is open are: export, home, make public, search in document, highlight/strikethrough/underline/comment and continuous/single view. if there isnt an option to edit background color, can i suggest that the makers of the windows mobile version make one, and make it fast please! any help would be appreciated. -CHANGE BACKGROUND COLOR

    hi, thanks for helping me ...
    i have used the above url and made changes to my OAF page, but i didn't get the desired output and its also giving as the above code output .
    i kept OraBgGrayVeryDark in Css style in property inspector for every region including PageLayout and i also did some changes in cabo/styles/*.css classes.
    eventhough it is picking the color upto footer level only and it is not applying for advanced table also.
    can anyone please give your views in this..

  • How can I change the background color of a menu ring?

    Hi
    Does anybody know how to change the background color of a menu ring??? (not the backround color of the first item, the background color of the list (remains always gray))
    thanks martin

    Try Preferences>>Colors>>Menu Background, but this will change ALL menu's background color.
    Hope this helps

  • How to change the background color of a sequence?

    I'm using Premiere Pro CS5 on Win7 x64.  I've imported a JPEG that's a different size than my 1920 x 1080 frame.  The background of this JPEG is white, but the background of the sequence is black (by default), so the borders of the JPEG make it stand out.  I want the JPEG to blend into the sequence background by making the sequence background white.  How can I change the sequence background color?  Thanks.

    Jim and Ann are correct. I can see where someone used to After Effects might ask that question though because in AE you can change the background color of the composition. Same with Photoshop.
    However, I think it would confuse things if changing the background color were to be allowed in Premiere Pro. Black tells me something. I suppose white could tell me the same thing, but at this time it is not possible in Premiere Pro.

  • How to change the background color of a cell in datagrid using flex3

    i want to change the background color of a cell.....how can i achieve this.....and also i want to know how a spacing cane be done between cells in a datagrid...plzzz help me???

    The only way I can see to do this is to use an item renderer for your cells.  This is really scruffy and would need tyding up, and maybe with a little more time could do better or someone else may have an idea but none the less this works.
    Define a custom component as below;
    This has logic to see what the value of the data is proveided by the dataprovider for the row, and if it matches the conditions in this case is equal to 5 sets the background color.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="88" height="26" dataChange="doColor()" borderColor="#000000" borderStyle="solid"
        backgroundAlpha="1">
        <mx:Script>
            <![CDATA[
                private function doColor():void {
                    if (data.value == 5) {
                        setStyle('backgroundColor', 0xcccccc);
                    } else {
                        setStyle('backgroundColor', 0xffffff);
            ]]>
        </mx:Script>
    </mx:Canvas>
    Now just apply the item renderer in the datagrid and that will do it.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"  xmlns:ns1="*">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                [Bindable]
                private var ac:ArrayCollection = new ArrayCollection([
                    {value : 1},
                    {value : 2},
                    {value : 3},
                    {value : 4},
                    {value : 5},
                    {value : 6},
                    {value : 7},
                    {value : 8},
                    {value : 9},
                    {value : 10}
          ]]>
        </mx:Script>
        <mx:DataGrid x="40" y="36" width="408" height="193" dataProvider="{ac}">
            <mx:columns>
                <mx:DataGridColumn headerText="Column 1" dataField="value" itemRenderer="MyComp"/>
                <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
                <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    I hope this helps
    Andrew

  • How do I change the Background Color of a Shape in iWeb?

    I am adding a comment bubble from the Shape menu for one of my photos. Everytime I try to change the background color of the bubble I end up changing the entire background color of the Web Page.
    How do I only change the background color of the shape?
    G5   Mac OS X (10.4.4)  

    Hi Kyn,
    Perhaps you (or anyone else!) can help me with this too: is it possible to change the color of the border styles that you choose for the thumbnails on a photo page? There is no "fill" option in the Graphic pane of the inspector when I select one of them. I love some of the styles but would like to be able to match the color better to my pages. See here for an example:
    http://web.mac.com/mousie/iWeb/Site/Recount.html
    The twirly border is a little too orange for my taste.
    Thanks in advance.

  • Can i change the background color of a file from white?

    i want to change file backgrounds from bright white, to a more soothing color.

    Each program is different and do not always have controls to change the background colors.
    For jpg files view this:
    https://www.youtube.com/watch?v=u5-WmuLFHys
    or this for jpeg
    http://www.wikihow.com/Change-an-Image-Background-in-MS-Paint-(Green-Screen)
    or this for pdf
    http://sodapdf.com/blog/sodapdf-tutorials/how-to-edit-a-pdf-file/pages/how-to-add-or-replace-a-backg...
    or of a folder
    http://www.sevenforums.com/customization/336693-how-change-background-color-folders-windows-7-a.html
    Anything else, I can't help you.
    Please mark my post as SOLVED if it has resolved your problem. It helps others with similar situations.

  • The new operating system changed the background color of the photos app from black to white.  How do I change the color back to black?

    The new operating system (IOS 7) changed the background color of the Photos App (Camera Roll) from black to white.  How do I change the color back to black?

    You can't. Sorry.
    http://www.apple.com/feedback/
    You can tell apple that you'd like it and see if they respond....eventually. (you don't get responses from your feedback mails but they have been known to issue changes that users have asked for, such as the ability to mass delete apps)

  • How do i change the background color in pages

    I am using the app on an iPad2. I I would like to know how to change the background color.

    Create a rectangle, and fill the whole page with it. Change the colour and then use text boxes to put writing on the background. Its a bit complicated because the background can move when your moving text boxes and making the rectangle bigger but you'll get the hang of it. I hope Apple can make this easier to do!

  • How do I change the background color of my canvas in FCPX?, How do I change the background color of my canvas in FCPX?

    How do I change the background color of my canvas in FCPX? I changed it from black to checkered but would like to return it to it's orginal settings.
    Thanks

    You can change the background display color in the playback preferences, either black, white, or checkerboard. This does not change the output color. If you want to add a color to the video, you have to place a custom generator underneath your video and change the color in the inspector.

  • How do you change the background color & font in a text-only popup?

    It has been ages since I did this and I can't seem to remember how. I tried to edit the style sheet but it only has options to change the text-only popup hotspot/link and I need to change the background color and font style within the popup itself. Tried Adobe's help but it had no answer for me. Any one out there know how to do this? I am running RoboHelp 7.

    By Popup do you mean a link that when clicked causes a separate topic to be displayed in a seperate window (popup) or Drop Down text?
    For Popups that are displayed in a new window then the font and colour is changed in the topic that is displayed. Simply open the topic and change colours / features as required
    If you are using drop down text and confusing this with a popup then the font and colour is changed when creating the drop down text. Right click the text and select Font to change colour etc.

  • How do you change the background color not of the video clip, but the background the clip is on?

    How do you change the background color upon which the clip resides...
    I don't want to change anything within the clip itself, but the matte(?)
    from black to white or cream.
    I am working with Elements 10...

    Create a color matte of the desired color and place it on video track 1.  Then place your video on track 2.
    from here: Adobe Premiere Elements Help | Creating specialty clips
    Create a colored matte for a background
    You can create a clip consisting of a full‑frame matte of solid color, which you can use as a solid background for titles or animated clips.
    Brightly colored mattes can serve as temporary backgrounds to help you see transparency more clearly while you adjust a key effect.
    Click Project Assets. 
    In the Project Assets panel, click New Item from the panel options and choose Color Matte. 
    Choose a color in the Adobe Color Picker dialog box, and click OK. 
    A color matte clip is placed into both the Project Assets panel and the Expert view timeline.

Maybe you are looking for

  • Can't print from my iBook to new HP printer

    I just used the software disc to install a new printer on my iBook G4. I'm running Mac OS X 10.4.11, and the printer is an HP Deskjet F4400 series. It appears to have installed correctly. They are attached by the USB cable. When I try to print (from

  • Domain Created: Failed Restarting Managed Servers in a cluster

    Hi, I tried creating a new domain from my local pc - by using the configuration wizard provided by weblogic.. the configuration used is like this - Admin Server - adminServer - 1.1.1.19 - on port 7001 Managed servers - machines:ip's - port 1. mgndSer

  • HT201413 Help! Having problem to restore my iPhone 4. Who can help?  Error (-1)

    Help! Having problem to restore my iPhone 4. Can anyone help? I have an erro message, (-1)

  • Putting old mail in new user account.

    Hello, Sorry this may be a really simple question, I've had mail running on the administrators account for a couple of years, I'm just creating user accounts for all the different people who use it. I want them all to be able to access the old sent m

  • Cannot use this in a static context

    I have a static method in which I am trying to use a logging class. I get an error that says "Cannot use this in a static context" when I compile the following code. Log log = LogFactory.getLog(this.getClass());What's the problem and how do I get aro