Programatically changing the color of buttons on LV OI

Hi,
I've modified the sample Operator Interface shipped with TestStand.
Buttons are linked to subsequences, so when a button is pushed a subsequence is running (boolean buttons).
What I would like to achieve is that, once a subsequence was called and the result was OK (pass) then the color of the button should change to green.
If the subsequence is failed then the button should change to red.
Thanks for any suggestions in advance.
Solved!
Go to Solution.

Hi,
You can find an example in Example Finder: "Property Nodes.vi" . It shows how you can change any properties for an object from your program.
You can find more examples on zone.ni.com, like these:
- Using Property Nodes to Change the Color of a Slide Bar https://decibel.ni.com/content/docs/DOC-2133
- Programatically Change the Color and Visibility of a Boolean using Property Nodes https://decibel.ni.com/content/docs/DOC-16569
Regards,
Peter Vago
AE Hungary

Similar Messages

  • Theme colors - Change the color of buttons

    Hi
    I went through the tuttorial, "Adding Styles to Components"
    I were able to change different properties of buttons by creating a Style Class with the same name as that of the theme but with different style attributes.
    This had the desired effect except for the background color.
    I played around abit with the style editor settings of a button with a theme applied on it, and found that when you are in the background tab of the editor and you select your desired new color, that there are no changes EXCEPT for when you select the " Repeat-y" from the "Tile" drop-down list. Only problem is you get a funny stripe through the middle of the button.
    Is this the only way to change the color of buttons, linked to a theme, to a new color?
    Any Advise
    Thank you

    To find the style properties defined in class Btn2, go to the theme's read-only css_master.css file:
    In the Projects window, expand Libraries > Default Theme > com.sun.rave.web.ui.defaultheme.css.
    Double-click the css_master.css file to open the file.
    Search the file for the style class of interest, such as Btn2.
    For example, to set a Btn2 background-color, both background-color and background-image must be defined to override the existing style class. Since you cannot make edits to the read-only css_master.css, use the style property editor to set the background-image to null and the background-color to the one desired for your component.

  • Can we change the color of button on mouse over ?

    Hi,
    - can we change the color of button on mouse over?
    - I have three groups on my presentation, each has 10 slides. I have inserted the relative progress text. It is showing (Page 2 of 30) but I want it (2 of 10). In other words I want relative progress text on group level, not on presentation level.
    Kindly help.
    Thanks in advance,
    Lucky

    Hi there
    Sorry, but your post seemed to initially infer you were just referring to a Button you would insert on a page. At least that's what I understood when I posted with what I did.
    Now it would seem you are referring to the Playback Controls that Captivate supplies? So either I grossly misunderstood your initial issue or you are now switching gears and asking about something different.
    What I posted earlier does not apply to the Captivate Playback Controls.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)

    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    3° Ive created buttons linking pages..
    - "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'
    - what should i do?
    5° Once i export it into Swf. how how can i visualize it? or put it online?
    Thank you for your time.

    stlbbl4u wrote:
    Hello,
    Here is the problematic:
    1° How can i change the color of the text on a button in Roll Over or Click state (Cs5.5)
    - I've many button in a doc im creating
    - the color of the buttons is white with black stoke & black text
    - in roll over state i want them to inverse the color coding (the text white & bottom black)
    - currently the text becomes invisible as black on black cant be seen (ive stroked it white but that looks ugly)
    - i would just like to know if there is a function made for this?
    You should setup Object Styles - these can also include Paragarph Styles that can be triggered when the Style is selected.
    http://help.adobe.com/en_US/indesign/cs/using/WS5CEDB81A-0011-4dc9-9DE8-AC7AD4C80076a.html
    My other questions:
    2° Ive a presentation on which Ive created buttons which tigger pop-up animations
    - i have 5 buttons which trigger animations
    - the viewer can chose to Click on any of the buttons randomly
    - the problem is once the animation is open how can it be close... either:
    a) by it self after "40" seconds
    b) when ther viewer clicks another button
    I'm not sure what you mean - I don't do files with Animations
    3° Ive created buttons linking pages..- "go to page xxx"
    - when i do a preview and click on the buttons the links dont take me to the right pages
    - is that normal? (maybe in preview its suppose to be like that)
    Does it work properly when you export it to the finished file?
    4° I would like to intergrate YouTube videos in the presentation so they play inside the docment.. when i tried.. it said the 'link isnt a flash video'- what should i do?
    InDesign won't link directly to youtube videos. I think your best bet would be to use Downloader to download the video and embed them directly in Indesign.
    5° Once i export it into Swf. how how can i visualize it? or put it online? 
    Thank you for your time.
    You can look up how to embed a SWF file into your HTML - but it depends what you mean by "online" there's a dozen ways to get a file "online".

  • How can I change the color of the new tab button?

    Hi,
    I was wondering if there was a way to change the color of the new tab button, list all tab button, and tab groups button. I have been searching for personas that don't make it hard to see those particular buttons for days now, but since I can't seem to find any I was hoping there was a way to change those buttons' colors to make them more visible with the personas.
    [http://i54.tinypic.com/2ui9351.jpg Here's a picture of the situation]
    I want to change those 3 buttons (and the "show more bookmarks" button that appears when the window is too small to show them all) to white or some other more visible color. I know there's a way to change the background of those buttons, but I'd prefer if I could change the '+' button itself in the new tab button for example. Is there any way to do it? Because it's so hard to find personas that don't make it hard to see text or buttons.
    Thanks.

    jus an example
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    Blinking_Indicator_2003.vi ‏27 KB

  • How do I change the color of a button in swing?

    I'm using swing to create an interface and it's made up mainly of buttons. Gray isn't exactly the prettiest of colors and I'd love if I could change the color.
    Cheers,
    elmicko

    Hi!
    You can set the color of each button independently using:
    JButton1.setBackground(Color.BLUE); // for the background
    JButton1.setForeground(Color.CYAN); // for the text displayedOr if you want all the button to have the same color you can overwrite the look and feel of the application using:
    javax.swing.UIManager.put("Button.background", new Color(230, 230, 230));

  • How can i change the color of a blinking button?

    Dear all,
    how can i change the color of a blinking button with property nodes, when the button changes from "normal" state to blinking state? I can change the color of the normal state, but how can I change the color when the button is in blinking state?
    thanks

    jus an example
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    Blinking_Indicator_2003.vi ‏27 KB

  • I want to change the color of the firefox button, the menu button is normaly orange what file/line in the .xpi do i need to edit to change it

    I just want to change the color of the button but there so many files so much code, and i just cant find a page that will tell me please help

    You can change the color by using the App Button Color add-on - https://addons.mozilla.org/firefox/addon/app-button-color/

  • How do I programaticly change the header BG color on a multiline listbox

    How do I programaticly change the header BG color on a multiline listbox

    Hi,
    If you mean the multicolumn listbox then you have to create the its property node on the diagram (right click on the item and select "Create->property node" from pop-up menu). Then you have to select two properties:
    "Active Cell"
    "Cell Background color".
    You can do it by expanding prperty node to 2 rows and right clicking on each row. Then select "Properties" from pop-up menu and the appropriate property.
    Then you have to set-up "active cell" to the appropriate coordinates of the column header. (row=-1; column=N or column=-2 if you want to change the colors of all headers).
    Now you have to connect the appropriate colorbox or numeric variable to "Cell Background color" property node and run the program.
    I've attached the example.
    Good luck/
    Ole
    g Chutko.
    Attachments:
    Color.vi ‏15 KB

  • Change the Colors of Expand, Minimize and Close Window Buttons

    How do I change the colors of the Expand, Minimize and Close window buttons?
    Red, green, and yellow are not conducive to red-green colorblind individuals, and the gray scheme in the Graphite appearance is too dull.

    If the change in theme can do it, there must be an alternative.

  • How do I change the color of the navbar buttons?

    Help!!!
    I created a basic page with a navbar with generic button (the default).
    I can change the color of the text in the buttons, but not the button itself!
    TIA

    Changing this in your 1.0.min.css
    .ui-btn-up-a{
        background: linear-gradient(#f00, #333) repeat scroll 0 0 #333;    border: 1px solid #222;
        color: #fff;
        font-weight: bold;
        text-shadow: 0 -1px 1px #000;
    Gives you this

  • How do I change the color of the small LED inside a Push Button

    One of my colleagues managed to accidentally change the color of the LED inside the Push Button. He didn’t know how he did it and we couldn’t figure out how to change it back. It’s easy enough to replace the Push Button with a fresh copy from the Buttons & Switches pallet but I would like to know how to control this parameter. Does anyone know how to do this?

    Hi Bob,
    Could you help us help you?
    Please post a VI with the troubling pushbutton so we can see the issue.
    If you are talking about the LED shown in the attached jpg,
    that color can NOT be changed at run-time. Use the Paintbrush.
    Ben
    Message Edited by Ben on 10-14-2005 10:26 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Led.JPG ‏20 KB

  • How do I change the color of the Firefox button?

    I find the solid orange of the Firefox Button a constant distraction in the corner of my eye. I'd like to change the color of the button--if it were the same color as the the tabs, that would be perfect. I like the general layout of Firefox 4, but that solid orange is very annoying to me.

    It is not straight forward but can be done. You can do this by adding code/scripts to a file called [http://kb.mozillazine.org/UserChrome.css userChrome.css] to change the appearance of the button. The Stylish add-on makes it easier to make the changes, the latest version of Stylish is available from http://forum.userstyles.org/discussion/24534/stylish-for-firefox-1.1b4
    For some samples of scripts you can add to Stylish to change the appearance of the button see http://www.neowin.net/forum/topic/921416-share-your-custom-firefoxminefield-4-stylish-scripts/
    There are also many scripts available at http://userstyles.org/
    Note that some scripts will no longer work as they would have been written for earlier beta versions of Firefox.

  • Is there any way to change the color of the Firefox 4 menu button away from orange? It attracts my attention and as far as I can tell personas change everything but the menu button color.

    Is there any way to change the color of the Firefox 4 menu button away from orange? It attracts my attention and as far as I can tell personas change everything but the menu button color.

    You can change it with the App Button Color extension - https://addons.mozilla.org/firefox/addon/app-button-color

  • How can I change the color of subscribed calendar?

    Hello!
    I have subscribed two calendars from the internet at my ipad. They automatically got the colors green and red. Now I wanted to change these colors. So I did it and changed them in the calendar-app of the iPad to blue and yellow. At first it worked. But after a few minutes, the colors automatically changed back to green and red. And that happens all the time. Whenever I change the colors of my subscribed calendars, they automatically change back a few moments later.
    Why does it happen? And how can I make my iPad keep the new color settings?
    I am using iOS 5.0.1

    I figured out a solution for changing the other calendars but not the birthday calendar. Although it's not the most direct fix, it worked for me. Apparently Apple didn't think to give us the ability to choose the calendar color. I use Entourage and sync over the air. When I upgraded to iOS 4 my calendar turned bright red and the birthday calendar was blue. I don't use the birthday calendar so it isn't even enabled in my case. What finally worked was to go through the calendar colors one at a time by disabling and re-enabling the calendar in my mail account settings. I would double click the home button to quickly switch between settings and calendar to check the color each time I enabled the calendar. I had to do this 4 or 5 times to cycle through until blue came back up.

Maybe you are looking for

  • Need some help with Photoshop Elements Organizer

    I have had this program for awhile now, but have not had a lot of time to spend with it....also on a new Mac. I am trying to work with the Organizer.  First time I tried to import photos from IPhoto, it said there was no media to import....(I have a

  • Problem with Body of the main window

    Hi friends, While Printing the smart form the main window body is not reaching to the end of the main window dimensions.(There is no footer for the main window). Its Printing all the records and at the end its giving one line gap. My problem is the v

  • Error downloading webplayer....

    Goodmorning, Long time since i posted a question. Still dissapointed about EOL of Adobe... I have a question about a message 'Error downloading webplayer'. We have created a course, consisting of about ten modules. The course runs under a LMS (SCORM)

  • Where to "store" phone when using sportstracker?

    Hi all, I'm interested as to where people "store" their phones when running sportstracker? When I'm in my car, I have a holder so that's no problem, but I feel a tad foolish when I'm out walking and holding the phone out in front of me recording my t

  • Recording forced to stop low system resources

    Hi Everyone, I hop that you can help. I'm trying Captivate as a solution for ctreating online tutorials for my clients. This involves on-screen demos along with soem text slides, nothing fancy... Up until today I'v e been very happy with what I have