How to create a 3-state button (similar look as OK button) that toggles between 3 different colors.

How do I create a 3-state button that looks similar to the OK button except it changes to 3 different colors every time it is pressed. Does anyone have such a control ready for use that I can just drop in my front panel?

With a picture ring you can implement a 3 color button without any code. Look at the attached customized control.
I have imported the picture of a boolean in three different items and
colored them. I centered the text and hide/made transparent uneeded
graphic elements. I set the size of the decrement arrow to cover all
the picture and made it transparent so when you click on the control
you decrement the value of the ring and change the picture/color
Edit: you'll notice that the picture is not fullt covered by the
decrement arrow so if you click near the bottom of the button, the
picture ring will show its normal behavior displaying all 3 available
items
Message Edité par Jean-Pierre Drolet le 07-07-2005 10:07 PM
LabVIEW, C'est LabVIEW
Attachments:
3COLORSBUTTON.vi ‏8 KB

Similar Messages

  • How to create nested CASE statements in PL/SQL

    Can anyone please tell how to create Nested CASE statements in PL/SQL with proper syntax?
    It would be better if you can help with an example.
    Thank you!

    Something like this:
    SQL> set serveroutput on
    SQL> declare
      2    v1 number := 2;
      3    v2 varchar2(1) := 'C';
      4  begin
      5    case v1
      6      when 1 then dbms_output.put_line('First');
      7      when 2 then begin
      8                    case v2
      9                      when 'A' then dbms_output.put_line('Found A');
    10                      when 'B' then dbms_output.put_line('Found B');
    11                      when 'C' then dbms_output.put_line('Found C');
    12                      else dbms_output.put_line('NONE');
    13                    end case;
    14                  end;
    15      else dbms_output.put_line('Else');
    16    end case;
    17  end;
    18  /
    Found C
    PL/SQL procedure successfully completed
    SQL> If you have further doubts regarding syntax you can read the docs on the Case statement here:
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10472/case_statement.htm

  • How to create a WMI filter in order to apply to machines that have Skype already installed with deploying a newer version of Skype

    Hi there,
    I was wondering whether anybody could tell me how to create a WMI filter in order to apply to machines that have Skype already installed with deploying a newer version of Skype.
    Your help would be much appreciated.
    Many thanks,
    Timbuctoo

    Hi,
    To create a WMI filter
    1.In the Group Policy Management Console (GPMC) console tree, right-click
    WMI Filters in the forest and domain in which you want to create a WMI filter.
    2.Click
    New .
    3.In the
    New WMI Filter dialog box, type a name for the new WMI Filter in the
    Name box, and type a description of the filter in the Description box.
    4.Click
    Add .
    5.In the
    WMI Query dialog box, either leave the default namespace (root\CIMv2) or enter another namespace by doing one of the following:
    ◦ In the
    Namespace box, type the name of the namespace that you want to use for the WMI query.
    ◦ Click
    Browse , select a namespace from the list, and then click
    OK .
    6.Type a WMI query in the
    Query box, and then click OK .
    7.To add more queries, repeat Steps 4 through 6 to add each query.
    8.After adding all queries, click
    Save .
    In the Query box, type the following WMI query:
    Select * from Win32_Product where Name LIKE “%Skype%”
    Best Regards,
    Erin

  • How to create alv table dynamically by performing action on the button.

    Hi all,
    my requirement is to create alv table dynamically.
    that is i will create two buttons
    1) show alv table
    2) close alv table
    if user selects show alv table then the alv table should be displayed.
    and if user selects clsoe alv table then the alv table should be closed.
    to create alv table dynamically  i have followed this procedure.
    under view properties i have added salv_wd_table component. then under the action of showalvbutton i went to code wizard and i have selected instantiate used component component use salv_wd_table. the following code will be generated
    with this code i am unable to display alv table dynamically correct me where i went wrong kindly send me the necessary steps how to create alv table dynamically
    data lo_cmp_usage type ref to if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_salv_wd_table( ).
    if lo_cmp_usage->has_active_component( ) is initial.
      lo_cmp_usage->create_component( ).
      endif.
    to close table i have used the following code. with this code i am able to achieve the functionality to delete the alv table
    data lo_cmp_usage type ref to if_wd_component_usage.
    lo_cmp_usage =   wd_this->wd_cpuse_salv_wd_table( ).
    if lo_cmp_usage->has_active_component( ) is initial.
      else.
      lo_cmp_usage->Delete_component( ).
    endif.
    Thanks & Regards,
    Naveen
    Edited by: naveen.webhelp on Feb 10, 2011 5:52 AM

    Hi
    ALV table will be shown in the viewcontainerUI element.
    it is shown there empty if you dont fill the node bound to the data node of the interface controller of the comp usage
    SALV_WD_TABLE.
    and if you are not getting the table filled in the first place.
    then check have you mapped the DATA node to some node in the comp controller
    wht basically is your requirment is that you want to show ALV gird on click of one button and delete it on click of other button.
    there are many ways to do so.
    best way is control the visiblity of the viewcontainer UI element which containes the TABLE view of SALV_WD_table comp.
    create an attribute of type WDUI_VISIBILITY name say VIS.
    now go to the layout and bound hte visible property of the viewcontainer to this attribute VIS.
    then in the showalv grid button's eventhandler write
    wd_context->set_attribute(
    name = 'VIS'
    value = '02'
    and in the wddoinit and delete alv grid button's event handler write
    wd_context->set_attribute(
    name = 'VIS'
    value = '01'
    thanks
    sarbjeet singh

  • How to create a three state approval workflow in SharePoint 2013 using visual studio 2013

    Hi Everyone,
    i have a requirement like 3 state to approve. Here is the details:- when the item added into the list it will go for reviewer. Once the reviewer review the item, he will assign the task to concern person/department(Parallel process more than two persons).
    Once they will approve the request again it will come back to reviewer and he will assign the task to team member(parallel process). Once the team member accepted then workflow terminate.
    i want develop this workflow using visual studio 2013 only, not using designer.. 
    Thanks in Advance.....
    Mallesh

    Hello,
    you can find multiple sample on the web like those
    http://www.splessons.com/2013/12/create-state-machine-workflow-in-sharepoint-2013-using-visual-studio-2012/
    http://msdn.microsoft.com/en-us/library/ee231606.aspx
    I don't think that's very different using VS2013 or VS2012
    Best regards, Christopher.
    Blog |
    Mail
    Please remember to click "Mark As Answer" if a post solves your problem or
    "Vote As Helpful" if it was useful.
    Why mark as answer?

  • How to create a new partion in my HP (Compaq LE1902x )PC that has already 4 primary partitions ?

    How to create a new partion (to save my files & Folders) in my HP (Compaq LE1902x )PC that has already 4 primary partitions ? when something goes wrong along with OS(C) drive my all files are lost. so i want to create a new partition & dedicate it to my files & folders.

    I would consider another problem. What if the hard drive (not the OS) fails. You'd lose all your data, all partitions. It seems better logic would be to copy your files and folders to either an external hard drive or USB thumb drive.
    I would not use the internal backup program, but would manually copy the data. I also would not leave such device attached to the computer.
    In my system I have a separate USB thumb drive that stored critical medical and legal documents. That way, I can travel with it, as needed. I also clone my primary desktop every 30-45 days. That way, if I get a failure, it's only that far back on lesser files.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • How to create an Event & schedule a rpt based on results of that Event..

    Help,
    I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
    I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
    select count(*) as RegCounts from [reg contact log] 
    where [due date] = date() +1 and [response due]=Yes
    Erin

    Help,
    I need to schedule a report, that will run after an event is done. I only want the rpt to run if the event produces more than 1 record.
    I dont know how to create an event? I am assuming I can use a SQL qry as an event. I would like to use:
    select count(*) as RegCounts from [reg contact log] 
    where [due date] = date() +1 and [response due]=Yes
    Erin

  • Can anyone tell me how to create a dvd from slideshow on my OSX10.9.5 that i can view on a tv

    can anyone tell me how to create a dvd to play on my tv from a slideshow on my mac

    Not in the Classic forum:
    http://discussions.apple.com/docs/DOC-2463
    Try iLife, iDVD, or iPhoto.  AppleTV may also help.

  • Disabled button to look like selected button

    I have a set of toggle buttons. If I wanted to disable a button the moment it was clicked, but not have the user know that this was done, how could I set the disabled button to look like a clicked button?
    I tried using
    ImageIcon disabledIcon = (ImageIcon) button.getIcon();
    button.setDisabledIcon(disabledIcon);
    button.setDisabledSelectedIcon(disabledIcon);But this made the button look like an unclicked button. The clicked button has the exact same icon in the middle, but the rest of the button is darker.
    Any help appreciated!

    may be you want like this,
    <a id="btnLink" class="brnLink" href="javascript:Form.submit('myAction')"/>
         <img id="next" src="/images/next.gif" />
    </a>

  • How can I indicate the states of a "empty" (no text) button ?

    Hi everyone,
    I've just created a video in After Fx and use it as a background menu in DVDSP.
    This video contains small windows with pictures that I like to use as buttons.
    I've created buttons that fit these windows but I don't know how to make the surface of the buttons change colors (using grey overlays for instance) to react to the state of the buttons (selected, activated).
    Is it possible when the button doesn't contain any text?
    Thanx

    Couple of ways to approach it
    First inside DVD SP you can make aa button and use a shape over it (if any shape works for you
    Or you can make a shape you like in photoshop and save as a pict overlay (though the shapes can be different buttons themselves (area they cover) are rectangular

  • How to create a video page, several videos (not youtube), with button triggers.

    How do you set up a page for videos, with a common target area, each video loaded with a different button trigger (not youtube videos)?

    You can use a Composition widget for the purpose and have videos hosted at your site (if not an online service) play using HTML5 video tag. A similar thread here on the usage of this HTML tag - http://forums.adobe.com/message/5210727.
    Thanks,
    Vinayak

  • How to create a single action listener for a group of buttons

    hi there.. i am new at java and i have a problem with my applet..
    i am doing a virtual ticket programme..
    i have a tab that says books seats.. in the tab, i am suppose to create 50 buttons.
    i have done that already by using for (int i=1; i<=10;i++) 5 times for 50 buttons.
    but i do not know how to set an actionlistener in the for loop for each of these buttons..
    For example, if the user were to chose seat "no3" , a text area(already created) below will show something like "no3" and so on..
    how do i bind these buttons into one single action listener so i do not have to create 50 actionlisteners and buttons individually..
    appreciate the help..

    You're killing me.
    class MyFrame extends JFrame implements ActionListener
         JTextArea myTextArea = new JTextArea();
         JButton myButton = new JButton("My Button");
         JButton otherButton = new JButton("Other Button");
         MyFrame()
              super();
              myButton.addActionListener(this);
              otherButton.addActionListener(this);
              setLayout(new FlowLayout());
              add(myButton);
              add(otherButton);
              add(myTextArea);
         public void actionPerformed(ActionEvent e)
              Object source = e.getSource();
              if(source == myButton)
                   myTextArea.append("My Button Pressed\n");
              else if(source == otherButton)
                   myTextArea.append("Other Button Pressed\n");
    }

  • How to create an if statement in Insight?

    I'm just starting with Insight, and want to take a look at some basic completeness data.  Running into an error every time I try an if statement.  In the Insert New Metric GUI, the error reads "The formula for the derived metric is incorrect"
    The current syntax is If([Company] = "Some Name", 1,0)
    This seems to be the syntax asked for by the function wizard.  Company is included in the report.
    I have been able to create some other metrics such as percentages of two fields.
    Other than the two Eloqua insight report guides, are there any other resources which go into depth for formula creation?

    I don't recall ever seeing anything quite that detailed. The only documentation in existance for insight (links need to be updated to the new Topliners portal):
    http://topliners.eloqua.com/community/know_it/blog/2012/07/24/eloqua-insight-analyzer-user-guide-introduction
    http://topliners.eloqua.com/community/know_it/blog/2012/07/24/eloqua-insight-reporter-user-guide
    http://topliners.eloqua.com/community/know_it/blog/2012/07/31/eloqua-insight-advanced-analyzer-user-guide
    ELOQUA INSIGHT Report Details Guide: http://topliners.eloqua.com/docs/DOC-3375
    http://topliners.eloqua.com/community/know_it/blog/2012/08/29/eloqua-insight-database-health-dashboard-faq-and-glossary
    Using Attributes and Metrics with Eloqua Insight: http://topliners.eloqua.com/docs/DOC-4987
    Eloqua Insight Data Model: Attributes and Metrics: http://topliners.eloqua.com/docs/DOC-3392
    If you don't find your answers in any of the documents above then the documentation for it does not exist or something new was written in the past month.
    Generally they store everything that exists here: Know It
    or here: http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAA/index.html#Help/Insight/Insight.htm%3FTocPath%3DInsight%2520(Re…
    -Alexander Huzar

  • Create a button similar like "Copy To" button in A/P Invoice in Customised

    I have created a customised form using SDK and want to create a "Copy To" present in A/P Invoice Form for copying data from one customised form to another customised form .Is it possible to create that button using SDK .

    Amit Sharma
    This question should be asked in category SAP Business One SDK session

  • How to create custom images c.war, similar to i.war.  --context not working

    ORDS beta 3.0..65.09.31
    I am trying to create a custom images c.war file, similar to the way one creates the i.war file for the APEX satic images.
    The directions say:
    java -jar ords.war static [--context] <location>
    Options:
               [--context]           The context path at which the
                                     WAR will be deployed,
                                     defaults to: /i
    Arguments:
               <location>            The location where the Oracle
                                     Application Express static
                                     resources are stored
    but I have yet to find any combination of syntax that will give me a war that maps to /c instead of /i, the default.
    For example:
    C:\oracle\ords3.0.0.65.09.31>java -jar ords.war static --context /c   C:\oracle\custom_htmldb
    WAR Generation complete
    WAR location     : C:\oracle\ords3.0.0.65.09.31\i.war
    Context path     : /i
    Static resources : C:\oracle\custom_htmldb
    Ensure the static resources are available at path: C:\oracle\custom_htmldb
    on the server where the WAR is deployed
    and
    C:\oracle\ords3.0.0.65.09.31>java -jar ords.war static --/c   C:\oracle\custom_ht
    mldb
    java -jar ords.war static [--context] <location>
    Options:
               [--context]           The context path at which the
                                     WAR will be deployed,
                                     defaults to: /i
    Arguments:
               <location>            The location where the Oracle
                                     Application Express static
                                     resources are stored
    --/c is not a valid option
    and variations using quotes and single quotes - all result in the same, either /i gets mapped or I get the directions again/
    This has to be something really simple.
    Please help!
    Thank you

    hi Jose,
    thanks for your answers, i tried to emulate the same but during step create time constraint in OOVK i am getting an error below:
    Specify the key within the work area
    Message no. SV033
    Diagnosis
    You have attempted to create an entry whose key is not in the range defined for this area.
    System Response
    The entry cannot be created.
    Procedure
    Please check your entry.
    below are the steps i executed upto now.
    Create infotype smilar to IT 1001 (ppci)
    Created new object type (ooot)
    created new relationship along with allowed relationship (oovk)
    Do you have any idea where it went wrong?
    Mani

Maybe you are looking for