How to set a HTML color to a control button

How to set a fixed color to a disabled button?
I have a boolean button which has 3 status: on, off and disabled. I don't like the 'grayed and disabled' option. I will use red for off, green for on, and white gray (foreground color) for the disabled status. The HTML color code is BDBDBD. I tried to send the hex number 'BDBDBD' to the button property node 'color[4]' but was told that I was wiring to the wrong type of terminal.
Could any one post a sample code of how to construct the structure of 'color[4]' using a RRGGBB number?
Thanks,
Ryan

What exectly do you want and do you see.
If I run the code you have in LabVIEW 9.0, I get the following result after running.
For convenience I have shown the second color array you set as color indicators:
Note that you use grey as the colors for True and False
Here I have set made the colors more distinct:
Ton
Message Edited by TCPlomp on 07-10-2009 08:00 AM
Message Edited by TCPlomp on 07-10-2009 08:01 AM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!
Attachments:
ButtonColor_FP.png ‏17 KB
ButtonColorMoreColor_FP.png ‏18 KB

Similar Messages

  • How 2 set the background color in j2me

    Can any body tell me how to set the background color to midlet.??

    if you are using Screen then you can call its setBackColor()
    or if you are using Canvas then you can call
    g.setColor(r,g,b);
    g.fillRect(0,0,getWidth,getHieght);
    where g is the Graphics instance of Canvas,for further information consult documentation

  • How to set dash line color(two colors)?

    hello all:
    Does anyone know how to set dash line color in java?
    I only know how to set line color with a single color.
    g2.setColor(Color.black);
    g2.setStroke(dashed);
    g2.draw(new Rectangle2D.Double(50, 50, 200,100));
    what I need to implement is two colors interleave on the dash line.
    so that dash line looks like this:
    ==== ====
    red white red white
    thank you for any comments.
    -Daniel.

    create 2 strokes, space them appropriately, draw the rectangle twice.

  • 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

  • How to set foreground gradent color to label???

    using this i can set background gradentcolor to label. But how to set foreground gradentcolor to label???
    JLabel compname = new JLabel("ARDENT TECHNOLOGIES INC")
              protected void paintComponent(Graphics g)
                { int width = getWidth();
                int height = getHeight();
                GradientPaint paint = new GradientPaint(0, 0,  Color.blue, width, height, Color.green);
                Graphics2D g2d =(Graphics2D)g;
                g2d.setPaint(paint);
                g2d.fillRect(0, 0, width,height);           
                super.paintComponent(g); } };
                compname.setOpaque( false );Thanks in advance
    raja

    reply #3 looks interesting
    http://forum.java.sun.com/thread.jspa?forumID=257&threadID=481290

  • How to set a background color to view

    Hi All,
              i creared a view with 2 textboxes and a button.These elements are in TransparentContainer.I set the background color to the TransparentContainer.By setting color to the TransparentContainer it is comming at the center and the 4 sides of it is displaying in the normal background color of the browser
    i didnt find any color options for the view called RootUIElementContainer.the width and height of the view are setted to the browser means 1024*768.
    Just like sap editor which we get by the link https://www.sdn.sap.com i want to get my view .....
    I want to set color to this RootUIElementContainer element which effect the whole view...not the containers or groups which i add under this RootUIElementContainer
    Regards
    Padma N

    hi Padma,
    For changing the background colour you will have to make the change in the theme.
    You can download the theme editor plugin for eclipse from SDN. With this plugin, you can make changes to the default themes , save as a new theme
    Or if you are using portal, then goto system administrator, theme editor, select SAP Streamline and change the color in Screen areas -> application, then save the theme with different name.
    Best regards,
    Sangeeta

  • How to set the Background Color of a Text Field in a Tabular Report.

    Hello,
    I tried to set the Background Color of a Text Field in a Tabular Report.
    But I was not able to change this colur.
    In the report attributes --> column attributes
    I tried already:
    1. Column Formating -- >CSS Style (bgcolor: red)
    2. Tabular Form Element --> Element Attributes (bgcolor: red)
    but nothing worked.
    Can anybody help me?
    I Use Oracle Apex 2.2.1 on 10gR2
    thank you in advance.
    Oliver

    in "Report Attributes" select the column to move to the "Column Attributes" page. In the "Element Attributes" field under the "Tabular Form Element" region enter
    style="background-color:red;"
    I will also check if there is a way to do this via the template and post here again
    edit:
    in your template definition, above the template, enter the following:
    < STYLE TYPE="text/css" >
    .class INPUT {background-color:red;}
    < /STYLE >
    (remove the spaces after the < and before the >)
    change "class" to the class that the template is calling
    (I'm using theme 9, the table has: class="t9GCCReportsStyle1" so I would enter t9GCCReportsStyle1)
    A side-effect of using this second version is that ALL input types will have a red background color--checkboxes, input boxes, etc.
    Message was edited by:
    TheJosh

  • How to set the source property of image control dynamically?

    Hi,
      I have different fxg files which I want to display in a list. For each row in the List, I define which fxg file to be displayed in my database.
    I need to know how to set the image1.source = (the fxg path) as a string from database?
    Is there any conversion needed in this case? If so, can you please help me how to do this?

    Hi,
      Thank you for your response. I am new to Adobe Flash Builder, Flex and action script. I don't get your answer straight away.
    What I basically need is, I need to set image1.source = strFXG. Right now, this does not show the image. I don't understand fxgObject.pathid.source => how to give this?
    Moreover, when I did google search, there is somethink like fxg converter which converts the fxg to a component. I thought this is a very simple problem on how to convert the fxg string to an object format. But now, it looks like it might be a big problem. Can anyone help me in this?
    import spark.components.Image;
                                  protected function view1_creationCompleteHandler(event:FlexEvent):void
      // TODO Auto-generated method stub
      var strFXG:String = 'assets.DB_Actief_Graphics';
                                            var image1:Image = new Image();
                                            image1.x = 100;
                                            image1.y = 100;
                                            image1.source = strFXG;
                                            addElement(image1);
    Regards,
    Chella

  • How to set image background color ?

    Hi All,
    In my project i have image,and if image have black spot or any unwanted spot then i will select that area and say clear it then it will remove that spot and set color of that area similar to area around that spot.
    I have written code for getting pixel color of selected area in image like this
    BufferedImage old_image = ImageIO.read(new File(myFile));
    int[] pixels = new_image.getRGB(0, 0,new_image.getWidth(), new_image.getHeight(),null, 0, new_image.getWidth());
    for (int i = 0; i < pixels.length; i++) {
    Color pixelColor = new Color(pixels);
    System.out.println("RGB ::"+pixelColor.getRGB());
    RGB returning negative value;
    Please tell me correct way how can i do this.
    It's very urgent.
    Thanks in advance.
    Thanks
    AP.

    i found the browser fill button.  Now how do I fill the browser fill with an image?

  • How to set selected text color in Spark TextInput

    I'm trying to make Spark TextInputs and MXFTETextInputs look like Halo/MX TextInputs as much as possible, since I have a mix of both Spark and MX TextInputs in my application. I know I can set the
    selection background color to black using focusedTextSelectionColor. How can I set the selected text color to white so it matches the MX white-on-black look?

    This works, if you set the enabled property directly on the s:TextInput:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:layout>
            <s:VerticalLayout horizontalAlign="center" verticalAlign="middle" />
        </s:layout>
        <s:controlBarContent>
            <s:CheckBox id="ch" label="enabled" selected="true" />
        </s:controlBarContent>
        <fx:Style>
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            s|TextInput:disabled {
                color: red;
        </fx:Style>
        <s:Group>
            <s:TextInput id="ti" text="The quick brown fox jumps over the lazy dog" enabled="{ch.selected}" />
        </s:Group>
    </s:Application>
    It can get a bit trickier when you're setting the enabled property on a parent container, since (I believe) that the child control's enabled properties are still set to true and just the container is disabled. One possible workaround would be to bind the child TextInput control's enabled property to the container's enabled property. That way the s:TextInput should still go to it's disabled state and you can customize the disabled state's styles to have darker text, or whatever else you want.
    <s:Group id="gr" enabled="{ch.selected}">
        <s:TextInput id="ti" text="The quick brown fox jumps over the lazy dog" enabled="{gr.enabled}" />
    </s:Group>
    Peter

  • How to set default font color in Pages

    I don't know why. I did a standard clean install of iWork 08. In Pages, everytime I select to insert a text box, the color of the font defaults to brown rather than black. It's a pain to change it to black all the time. Also I noticed that when I select to insert a line, it also defaults to brown. Any thoughts on why this is happening as the default color and how to fix it?
    Also, almost evertime I do the option click on the text box icon to draw a text box, the cursor changes to the crosshair but the box allows me to draw the with size, but the length of the column automatically can't be drawn- it extends instead all the way off the bottom of the page. In other words I can't really draw the text box to the size I need. I'm new to Pages.

    Fix Your Fonts in Safari 6
    Some Safari 6 stuff
    TextExpander shell script snippet to set Safari 6 default fonts
    Safari 6 on Lion, text much smaller?
    Quickstyle - Canisbos
    Safari 6 default font way too small?

  • For P.O.D. Printing: How to Set Adobe RGB Color Space

    Hello and thanks in advance,
    (I'm using InDesign CS 5.5 on a Mac.)
    I need to set the proper PDF export settings
    For printing a book on demand, with color drawings inside on the text pages.
    The onnly instructions that I have been able to find, say this:
    "Submit your graphics in the Adobe RGB color space, withprofile embedded."
    The Big Question: How do I do that ?
    I know enough to start with
    File --> Adobe PDF Presets --> Press Quality
    Then I click on the "Output Menu"
    and here's where I start to get lost.
    for
    Color Conversion ...
    I think I should select "Convert to Destination"
    for
    Destination
    I think it should be "Adobe RGB (1998)"
    Now in order to embed this profile,
    What should I select under:
    Profile Inclusion Policy   ?
    And is there anything else I should be doing to get these inside color images printing nicely ?
    Thanks again,
    IthacaAuthor (aka ZorbaTheGeek, but the forum would not let me log in with my old screen name)

    Virtually all digital printing is done via either PostScript or PDF. In the former case, the PDF is converted to PostScript viat use of Acrobat and in the latter case, the PDF is sent directly to the digital printer.
    In either case, CMYK is in fact the actual destination color space. There are no real RGB printers!!! What is true is that non-PostScript / non-PDF printers (typically low end laser and inkjet printers as well as specialized inkjet and dye sublimation photo printers) do take in RGB via drivers and convert that to CMYK, but I don't believe that is what you are dealing with.
    Our recommendation at Adobe for best printing results, whether for offset or digital printing, is to export PDF as PDF/X-4 with no color conversion using the default CMYK color space (SWOP CMYK) or if instructed otherwise by your print service provider, one of the other CMYK color spaces provided by Adobe or by the print service provider themselves. FWIW, most on-demand digital print devices do have settings to fully emulate SWOP CMYK printing conditions. Using PDF/X-4 in this manner allows the existing color content in your InDesign document to be properly tagged in the output PDF file and converted to CMYK at the digital printing device's RIP.
    (It might also assist us if you can provide a pointer to the explicit instructions provided by your print service provider.)
              - Dov

  • How to set table alternating color

    how do i set the properties of table with alternating color
    properties :
    design : alternating  
    it is like normal table , although i have change the properties of design to alternating.....
    pls advice

    Hi Yzme,
    When you change the Table Design propety to "<b>alternate</b>", change the <b>readOnly </b>property to <b>"true</b>". Then the table will display the alternate colors but the table will be read only.
    Refer to the following thread also:
    Re: Problem with table design in 2004s
    Regards,
    Jhansi

  • AnyGantt: How to set different bar color depending on data value.

    Need to have different colors for bars in a gantt resource chart.
    The color depends on certain data value not included in the visible part of the chart, so it must be provided 'extra' for the chart in some way without beeing visible.
    Have studied some examples but cannot figure out the mechanism for this, and the procedure to implement it.
    Any ideas?
    Apex 4.2.2
    Regards
    Per.

    Hi Per,
    You mention "+Among the samples I can see that it has been implemented, but not how.+" - in the Information region below the chart that Tony referred to (https://apex.oracle.com/pls/apex/f?p=36648:50) that I've stated the following:
    "The elements of the Timeline region have been customized via the Chart Attributes page, using the following settings: *Custom Colors*: #000000,#00FF00,#0033FF"
    So that's how I applied custom colours to that particular chart. However, that declarative option won't meet your requirements, where the colours you wish to apply are dependent on data not included in the chart series query. You mention "+Now, if I add another column to the statement I get a yellow error message telling that the statement is not valid.+". It is not possible to simply add an additional column to the chart series query. Each supported chart type expects the associated chart series query to use specific syntax - see About Creating SQL Queries for Charts in Chapter 10 of the APEX User's Guide, http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldapp_chrt.htm#BCEIJJID.
    So to answer your question "+How to add the new value if not providing another column to the graph?+", if you wish to customise your chart to that extent, then you will need to use custom XML. Depending on what exactly you're trying to achieve, this may require the generation of custom data for your chart. If you edit your chart, and take a look at the Custom XML region, you'll notice a substitution string, #DATA#, towards the end of the XML. When a chart is rendered, we use the chart series query to generate the necessary XML to represent the data on the chart, replacing the string #DATA# with the actual XML. The format of the data XML generated for gantt charts uses a bar style called "defaultStyle", and this handles the default appearance of the bars in the timeline region e.g.
    <period resource_id="1" start="2009.03.21 00.00.00" end="2009.09.21 00.00.00" style="defaultStyle"/>You'll see that the 'style="defaultStyle" ' attribute of the data corresponds to a segment of XML outlining what that style is e.g.
    <period_style name="defaultStyle">Now take a look at the Bar Style in Resource Project example in the AnyChart online documentation http://www.anychart.com/products/anygantt/docs/users-guide/bar-style.html#bar-style-application-resource-project. In that particular example, a number of different bar styles are used i.e.
    <periods>
      <period resource_id="server_1" start="2008.07.07" end="2008.07.8" style="Working" />
      <period resource_id="server_1" start="2008.07.8" end="2008.07.12" style="Maintance" />If you need to add a different bar style to particular rows of data on your chart, then you'll need to add new bar style XML for each colour you wish to use in the Custom XML on the Chart Attributes page, and then you'll also need to generate the data XML yourself, applying the necessary bar style to the relevant row of data. I've got an example of how custom data can be generated for a Resource Gantt here e.g. https://apex.oracle.com/pls/apex/f?p=36648:73 but keep in mind that particular example doesn't demo adding different styles to the data...but it can certainly give you an idea of what's entailed in the generation of custom data for your chart.
    I hope this helps.
    Regards,
    Hilary

  • How to set the (specific) color for a Chart Series in a Flash Diagramm

    Hello all,
    I wonder how I can set the color (of a bar) for a Chart Series in a Flash Diagramm.
    So far I found now set-screw for this.
    Can someone give me a hint please.
    Thanks in advance.
    Andre

    Hi,
    On the Chart Attributes page for the region, change the "Color Scheme" setting to Custom. Then, in the "Custom Colors" setting, enter the colours you want for all series, separated by a comma. For example:
    red,yellow,greenAndy

Maybe you are looking for

  • Installer Disc Could Not Be Found - XP Performance

    I'm trying to burn a copy of XP Performance on to my mac. I know for a fact that it works, so that's not really an issue. I used disc utility to make the .iso a disc image, burned the disc image, and it won't work. Restarted the comp with the disc in

  • Apple TV remote skips music tracks when navigating menu

    I've just set up my Apple TV and paired it to my Macbook through home-sharing. However, when I'm navigating the main menu (using the Apple TV remote), it will pause/skip/go back on the music tracks that are playing, as well as moving between menu ite

  • Export Self-Contained / Sequence / Aspect Ratio Question

    Hello all, I have source clips, that look like this, with a command+I in quicktime: Format: 24-bit Integer (Little Endian), Stereo (L R), 48.000 kHz DVCPRO HD 1080i60, 1280 x 1080 (1888 x 1062), Millions FPS: 23.98 Normal Size: 1888 x 1062 pixels Cur

  • Tax code not appearing in Header data of MIRO

    Dear All, I have one query and it is as follows. I created one Input tax code A3 in transaction FTXP. When I went to transaction MIRO this tax code A3 is not appearing in header data of MIRO. Can you pls tell is there any other settings to be done to

  • SAP and TAS Connection through Web Services

    HI Experts, we are planning to Integrate SAp and another TAS system using web services (no XI/PI). Please tell me if this way is correct. XML format of iDoc will be the data format, web service technology will be used to exchange data between SAP and