How to create a button to launch a color picker

I have a client how does not like the color picker component.
Currently I'm trying with no luck to get a button to launch the
selector portion of the color picker. I tried the following code on
the buttons on click method -
Any idea on how I would do this?
Thanks,
Jack

This works.
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:ColorPicker id="clr"/>
<mx:Button label="Open Color Picker"
click="clr.open()"/>
</mx:Application>
In your case you did not add the CP to the display list:
private function launchCP(): void {
var cp:ColorPicker = new ColorPicker();
cp.addChild(cp);
cp.open();
You are better off creating CP adding it to stage, and then
setting visible and include in layout to false, then set them to
true and call open when button is clicked.

Similar Messages

  • How to create SAVE button in Workbook using BI IP Functionality

    Hi All,
    I have Real-time Infocube (ZCUBSDID) with me. Planning has been done on the cube using BI-IP (like Aggregation level, filter, planning function and planning sequence are present there).
    As an Input i have everything in Quality system like I can access query in Bex Anlyzer (Input Ready Query) and also i have workbook associated with the query. SAVE button is also present on workbook which is giving result based on fiscal year and version.
    Now my task is to create workbook on Development system with the same functionality as Quality System.
    I have same Query available on DEV system also. I created new  Workbook but SAVE button is not available in my workbook.
    Can anyone suggest how to create SAVE button in my new workbook.
    I am new in IP side so please let me know if i can get any help from workbook which is already present in Quality system.
    Which type of analysis i should do to come out with solution.....otherwise let me know step by step procedure to create SAVE button on workbook using BI-IP functionality.
    It will be great help. My advance thanks goes to you people.
    Thanks,
    Rupali Singh

    Check points 19 & 20 on this link http://help.sap.com/saphelp_nw2004s/helpdata/en/43/a033e0f56e21b5e10000000a1553f6/frameset.htm.
    Command to be called on SAVE button is SAVE_AREA as explained in the point 20.
    Regards,
    Deepti

  • How to create a button Widget

    Hi,
    Can any one tell me how to create a button widget,
    I've created one & it can be seen in my plugin, but it doesn't work,
    in .fr file i created the widget as,
    ButtonWidget
               kEXTCODGoButtonWidgetID,      
               kSysButtonPMRsrcId,
                kBindNone,                        // Binding ,kBindRight | kBindBottom,
                Frame(50,70,140,90)                    // Frame (l,t,r,b)
                kTrue, kTrue,                     // Visible, Enabled
                "Run", // PNGIconAttributes, new for InDesign 3.0              
    in DialogObserver.cpp
    for AutoAttach & AutoDetach,,
    AttachToWidget(kEXTCODGoButtonWidgetID, IID_ITRISTATECONTROLDATA, panelControlData)
    DetachFromWidget(kEXTCODGoButtonWidgetID, IID_ITRISTATECONTROLDATA, panelControlData);
    in ::update
    WidgetID theSelectedWidget = controlView->GetWidgetID();
    if (theChange == kTrueStateMessage)
    //if (theSelectedWidget == kEXTCODGoButtonWidgetID
    switch(theSelectedWidget.Get())
             case kEXTCODGoButtonWidgetID:
      this->ViewOutput();
      break;
    please tell me what may be the wrong...

    Hi,
    Do you have any idea about how to get the class name (ex: kSplineItemBoss) from a ClassID.
    I know how to get the class id;
                                                      ClassID unknownClassID = ::GetClass(unknown);
    I found it from an example..
    now i want to know which class name related to that ClassID..
    Thanks.

  • How to create a button which unloads an iFrame and puts in its position another iFrame?

    How to create a button which unloads an iFrame and puts in its position another iFrame?
    It is very important for me if anyone could answer...
    Thank you all in advance,
    Frank

    Ok I found it!!

  • How to create radio button in reports

    Hi Friends,
    Can any body please tell how to create radio button in reports.
    Thanks,
    Nagendra

    Hi Nagendra,
        But why do u need a single radio button, any specific reason...
      try this
    REPORT  ZCHA1.
    PARAMETERS : P_RAD1 RADIOBUTTON GROUP RAD,
                 P_RAD2 RADIOBUTTON GROUP RAD.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'P_RAD2'.
          SCREEN-INVISIBLE = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • How to create radio button between two slection screen

    hello all.
    could you please guide me how to create radio button between two SELECTION-SCREEN  in screen painter.
    Thank you,
    srinivas

    hi
    SEE THIS CODE
    REPORT  ZNNR_REPORT NO STANDARD PAGE HEADING MESSAGE-ID ZNNR LINE-SIZE 100 LINE-COUNT 65(4).
    ******DATA DECLARATIONS**********
    DATA : BEGIN OF IT_PLANT OCCURS 0,
            MATNR LIKE MARA-MATNR,
            WERKS LIKE MARC-WERKS,
            PSTAT LIKE MARC-PSTAT,
            EKGRP LIKE MARC-EKGRP,
           END OF IT_PLANT.
    DATA : BEGIN OF IT_PONO OCCURS 0,
            EBELN LIKE EKKO-EBELN,
            EBELP LIKE EKPO-EBELP,
            MATNR LIKE EKPO-MATNR,
            WERKS LIKE EKPO-WERKS,
            LGORT LIKE EKPO-LGORT,
           END OF IT_PONO.
    TABLES EKKO.
    ********END OF DATA DECLARATIONS*********
    ********SELECTION SCREEN DESIGN ***********
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
    SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R3 RADIOBUTTON GROUP G2 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R3.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R4 RADIOBUTTON GROUP G2.
    SELECTION-SCREEN COMMENT 5(20) TEXT-004 FOR FIELD R4.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    ******END OF SELECTION SCREEN DESIGN****************
    <b>rEWARD IF USEFULL</b>

  • How to create custom button by amending template in sc and change po screen

    Hi,
    Can anybody tell the steps that How to create custom button by amending the template  in shopping cart or change purchase order screen.
    Full points for the answer.
    Edited by: shraman saha on Aug 17, 2008 6:44 PM

    Hi,
    I dont have any idea what you mean by Template for "Change Purchase Order" functionality. As far as i know there is a change button on the screen using which we go to the change mode and edit the PO.
    About your other query: you do not require to download any HTML pages. To see the templates for PO go through the following path:
    Transaction SE80 --> Internet options --> in the drop-down enter BBP_POC (for PO) --> Topic 99 --> HTML templates.
    Then look for the following templates :
    SAPLBBP_PO_UI_ITS 3000  --> for header basic data
    SAPLBBP_PO_UI_ITS 4000  --> for item overview
    SAPLBBP_PO_UI_ITS 4100  --> for item basic data
    SAPLBBP_PO_UI_ITS 2200  --> for buttons.
    Make appropriate changes to the screen and then publish it before using it. It is just like activating objects.
    Hope this helps.
    Thanks,
    Pradeep

  • How to create a button in a interactive document and use the button to launch and external "exe." file.

    I created an interactive document and will export as a swf.  I would like to create a button in the interactive document to launch and external "exe." file. Is this possible.

    You will need to create custom web part editor. Look at the following example. It also have added button and its events. I am sure you can use this sample as base and code your logic.
    http://msdn.microsoft.com/en-us/library/hh228018(v=office.14).aspx
    Amit

  • How to create a button that Copies subform data and paste it to a new page?

    Hi , I'm want to create a button that when clicked copys all the data from the feilds of a subform off the previous page and paste it into current page.
    I have used Steve's "Simple table.pdf example" to add a subform called DecorationDetail that has a button that adds an instance when clicked.
    Contained in the decorationdetail subform are feilds named Quantity, Description,UnitPrice etc. and a delete instance button.
    So when the first page is filled out, and a second page with blank duplicate feilds is added by a add page button. I want to be able to click a button
    positioned at the end of the row of feilds, and it then copies the same subform data from the previous coresponding page and pastes it into the current page subform feilds.
    Hope this make sense?. A step by step guide would be greatly appreciated!!!.

    Hi,
    Does this article provide you with some clues? http://www.perfectwebtutorials.com/2011/how-to-create-simple-contact-form-in-flash/
    Thanks,
    Preran

  • How to create text buttons that link to video?

    I've finally gotten around to trying DVD SP, and even though I read the whole manual, it's not at all clear if, or how, you can create text buttons that link to the video you want to play, without displaying a clip of that video in the button itself.
    I have no problem creating a text button, but I can't change the font, and editing is counter-intuitive, unlike iDVD. I'd use iDVD, but it doesn't accept .m2v files, and it seems to think that my 6 videos of about 43 minutes each are too large for a DVD+DL disc, so it won't let me burn it or save it as a disc image.
    Does anyone have a way out of this conundrum, or am I SOL?
    Mulder

    It really isn't that hard!
    As Drew said, go into your menu and click and drag to create a button rectangle. With the button highlighted, look in the property inspector at the bottom and type in the text that you want to use. Ensure that you 'include in button highlight' and then set the colour choice for selected and activated.
    What you get is a simple line of text which illuminates when you roll over it, and changes colour when you click on it.
    Once that is done, click on the button area again and set the target to go to the piece of video that you want to have play back.
    You should also set the menu call and end jump on that track to make sure your viewer can get back to the menu.
    Once that is done the menu will show as a simple piece of text (more buttons means more bits of text, and the first button will be highlighted by default) and no video will play until the button is activated.
    DVDSP is definitely a steeper learning curve than iDVD but for very good reasons. You get far greater control and access to far more advanced features in DVDSP. This means that some things will seem harder, whereas in fact they are just different and the process for achieving the result you want is different. Much of what you want to know is in the manual and also in the tutorials which came with the app. Failing that there are several good online spaces where you can find a lot more information... not least of which is right here, of course!

  • How to create a button like the one pictured here

    How would I create a button like the print button below?
    I was thinking actually make it two separate buttons placed next to each other. The print button obviously would just be a modified boolean, that's easy. But the drop down is a bit harder. I figure I could customize a drop down but because I haven't been able to play around with it in LabVIEW (don't have it at home) I'm not sure if you can modify the alignment of the box that actually drops down etc. Is the drop down box location and look something you can modify within the control editor?
    I'm guessing I could also use .net correct? But I am trying to keep it all with just control modification in LabVIEW if possible. Thanks.
    CLA, LabVIEW Versions 2010-2013
    Solved!
    Go to Solution.
    Attachments:
    buttonexample.PNG ‏6 KB

    for(imstuck),
    I'd use a multicolumn listbox and toggle it's visibility when the user clicks on the button.  I've attached an example:
    ~Simon
    Attachments:
    8-2-2010 2-04-25 PM.png ‏24 KB
    Print Drop Down Snippet.png ‏55 KB
    Print Drop Down.vi ‏29 KB

  • How to create a button in pdf to jump to a specific location and highlight it....?

    I have a problem in making a pdf-file interactive which I suspect will have to be solved by Javascript, but I don't know the exact solution. What I want to do is to be able to create a button on a page. Clicking this button will cause the pdf reader to go highlight a specific area (stored in the button information), either on the same page or another page. The functionality could also be achieved by the button searching for a specific and unique string in the document, and subsequently highlighting it. I have looked for this functionality in pdf's, but not been able to find it. Does it already exist?. If not, can anyone come up with a hint how it can be implemented? (Javascript, anyone?) Appreciate your feedback very much.

    You will need to create custom web part editor. Look at the following example. It also have added button and its events. I am sure you can use this sample as base and code your logic.
    http://msdn.microsoft.com/en-us/library/hh228018(v=office.14).aspx
    Amit

  • How to create a button which scrolls down with the page automatically?

    Hello,
    I wanted to create a button which takes u back to the top of the page when pressed on, but I was wondering how to make it scroll down with the page on the right side automatically when some1 scrolls down the page.
    An example I saw was on tumblr.com
    P.S I'm a newbie, so please explain it clearly ;d.
    Thanks.

    Create a button, position it as fixed at the top right say,
    a button{
              position:fixed;
              top:50px;
              right:50px; 
    <a href="#home"><button> Button</button></a>
    The <a> is the link to take you to the top of the page
    Just be sure to set the id home on an element at the top of the page

  • How to Create a Button for Reader Users to Save XML Data File?

    The "Submit via Email" tries to launching the local email software, like outlook express. But public computer tends to use internet emails.
    I am thinking of creating a button, allowing the reader users to save xml data filled in the form (same as the "submit via email" produces) somewhere.
    anyone has a clue?
    Thanks a lot!

    You could create the shortcut at one machine, then copy it to the target as part of the logon script. Note also that this line contains an error:
    "C:\Users\%userprofile%\Desktop\Org_chart_test.lnk"
    It should read:
    "%userprofile%\Desktop\Org_chart_test.lnk"

  • How to create multiple buttons in ALV Toolbar in Webdynpro ABAP

    Hi all,
    I am trying to create multiple buttons in Webdynpro  ALV toolbar, please go through the code.
    What happening is, second button is replacing the first one.
    DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
       lo_cmp_usage =   wd_this->wd_cpuse_alv_table( ).
       IF lo_cmp_usage->has_active_component( ) IS INITIAL.
         lo_cmp_usage->create_component( ).
       ENDIF.
       DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
       lo_interfacecontroller =   wd_this->wd_cpifc_alv_table( ).
        DATA lv_value TYPE REF TO cl_salv_wd_config_table.
       lv_value = lo_interfacecontroller->get_model(
       DATA lr_buttonui1 TYPE REF TO cl_salv_wd_fe_button.
       DATA lr_buttonui2 TYPE REF TO cl_salv_wd_fe_button.
       DATA button1 TYPE REF TO cl_salv_wd_function.
       DATA button2 TYPE REF TO cl_salv_wd_function.
    **First button
       CREATE OBJECT lr_buttonui1.
       lr_buttonui1->set_text('Button')."setting the text of the button on alv toolbar
       button1 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON')."creating the function for alv button
       button1->set_editor( lr_buttonui1 ).
    **Second button
       CREATE OBJECT lr_buttonui2.
         lr_buttonui2->set_text('Button1')."setting the text of the button on alv toolbar
       button2 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON' )."creating the function for alv button
       button2->set_editor( lr_buttonui2 ).
    How can I overcome this??
    Thanks
    Eshwar

    Hi Eshwar,
    The button Ids are same for both the buttons in your code. You need to change it as BUTTON1, BUTTON2.
    **First button
       CREATE OBJECT lr_buttonui1.
       lr_buttonui1->set_text('Button')."setting the text of the button on alv toolbar
       button1 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON1')."creating the function for alv button
       button1->set_editor( lr_buttonui1 ).
    **Second button
       CREATE OBJECT lr_buttonui2.
         lr_buttonui2->set_text('Button1')."setting the text of the button on alv toolbar
       button2 = lv_value->if_salv_wd_function_settings~create_function( id = 'BUTTON2' )."creating the function for alv button
       button2->set_editor( lr_buttonui2 ).

Maybe you are looking for

  • A suggestion for those with freezing dual-core 2.3 G5s (and maybe others)

    I'm on my second dual-core 2.3 that's showing the random instability that many others are describing on the boards. To summarize: - The kernel panic screen usually (but not always) appears. - Within 10-20 seconds of the crash, fans come on full bore.

  • Mac to PC video chat connects only one way?

    This may be somewhat off topic for Mac users, but maybe someone in the community can still help me. I have a strange problem using iChat AV 3 on a MacBook and AIM 5.9 on a PC for video chat. I can readily establish video chat when the PC contacts the

  • Time in my mac changes after switching to Windows with Boot camp

    Hi there.. I don't know whether this is normal, but every time I switch from Windows back to Mac OS (Using Boot camp-all versions I've tried have this flaw, it hasn't appeared in case of Parallels), system time changes in one hour ahead. Can anybody

  • Audiomorph

    Hi, is notmad the only software, which supports ? Thx x34 Zen Touch 40GB

  • Imported RAW Photos too bright (overexposed, washed out)

    I've noticed with my Sony A700 camera that when I import RAW photos into aperture they look alright in the jpeg preview but once they are processed as raw they become extremely washed out and bright, does anyone know how to fix this?