Assigning a child button to Accordion header

I have an Accordion control with several panels. Each header
has an icon and a title. I need to add a child button to the
Accordion header (which is a Button itself and not a container, but
it should be OK). I want to place it on te right side of the
header. I create a 20 x 20 button and add it to the Accordion
header, as a child. I want to place it on the right corner of the
Accordion header, but I am unable to get accurate size measurements
of the header. What I thought would work (using the Accordion
derived custom class) would be ....
for(var i:int=0; i<numChildren; i++)
var header:mx.controls.Button = getHeaderAt(i);
header.addChild(minusButton);
super.measure();
minusButton.x = header.measuredWidth - 20;
but the measureed width always comes up as zero, as opposed
to the actual width of the header? Any ideas what I am doing
wrong?

Set the button's "In" parameter to the same MIDI message your controller is sending.
Now when the button receives a MIDI input with the matching message, it will trigger.
You'll obviously need an environment cable path so that incoming MIDI can reach the button, by whatever means is appropriate.

Similar Messages

  • Wrapping text - accordion header

    I'm new at this and I need to be able to wrap text in
    something like (okay... just like) an accordion. That is to say I
    have a fixed width to deal with and will be dynamically generating
    the 'label'. I have read that the label merely sets the text of the
    button that is the header but my question is this: is there an
    override for this button (can something other than a button,
    something that supports word wrap, be the header?) or is there a
    clever trick using a particular child of the accordion that will
    allow me to set text that will wrap? Seems like I can't be the only
    one to have run into this before.... any help is greatly
    appreciated. Thanks.
    ~colo_fish.

    hmm understand the problem , think the normal behaviour fits
    in most cases (also the complete label is displayed when mouse is
    moved above the accodian button).
    If you like to try a workaround I would suggest to overwrite
    the mx.containers.accordionClasses.AccordionHeader and create a
    your own button class, who handle the wrapping/resizing when label
    exceeds the current width. But this might not be very easy, cause
    you have to take care about font sizes etc.
    best regards,
    kcell

  • Adding a Buttton To An Accordion Header

    I am dynamically creating an Accordion at run time. I place a
    new panel in the Accordion which generates a new Accordion header
    that I attribute an icon to. All good so far. I need to dynamically
    place +/- buttons on the right side of each header to give the user
    the ability to replicate, or delete the panel/Accordion component.
    I can't seem to addChild to the header with a child button. The
    Accordion header is a button itself and not a container. I started
    to create a custom MXML module extending Button, which I intended
    to substitute via the headerRenderer if I could work something out,
    but that also will not allow me to drop anything onto the
    component, as it is not a container.
    Is there any way to do what I am trying to accomplish?

    nikkib04 wrote:
    I tried exactly what you said and here are the photos. Will they fit in the boxes to cover the black background without stretching the picture? I did not see a option to fit the photos into each black square.
    Why not make your own montage?
    Photoshop Elements Techniques, Tutorials, Downloads, Video Tips, Newsletter and more - Photoshop Elements User
    For Yohl - Birthday Photo Collage Instructions - Elements Village

  • Accordion header issue

    How to achieve accordion header visible to true/false, without add/remove child?

    var style1 = new TextField.StyleSheet();
    style1.setStyle("mm", {fontFamily:'Arial,sans-serif',
    fontSize:'11px', color:'#6666ff'}); //internal css
    my_label.autoSize = true; /// -------- already created a
    label (my_label) instance --------
    my_label.styleSheet = style1;
    my_label.html = true;
    my_label.text = "<mm> My Sub menu1</mm>";

  • Text and two images in accordion header?????

    how to insert two images in the accordion header
    1) indicates the accordion image constant
    2) if the accordion's state is up or down.
    i tried using headerStyleName,
    <mx:Accordion     headerStyleName="customAccordionHeadStyles">
                <mx:headerRenderer>
                           <fx:Component>
                                 <mx:Button fontWeight="normal"
                                   disabledColor="#000000"
                                   labelPlacement="left"
                                   textAlign="left"
                                   />
                           </fx:Component>
                </mx:headerRenderer>
                 <mx:VBox label="Some text here    " paddingTop="0"
                         backgroundColor="#ebfaff" icon="@Embed('assets/goodIcon.png')"
                        // one more icon or skin state here to show it was up or down
                         verticalScrollPolicy="off"
                         horizontalScrollPolicy="off"
                        / >
                 <mx:VBox label="Some text here    " paddingTop="0"
                          backgroundColor="#ebfaff" icon="@Embed('assets/badIcon.png')"
                         // one more icon or skin state here to show it was up or down
                          verticalScrollPolicy="off"
                          horizontalScrollPolicy="off"
                          />
    </mx:Accordion>
    thanks for reading.

    You can use "CanvasButtonAccordionHeader" to make custom Accordion header  (HeaderRenderer) and add text/images as per your requirements.
        <mx:headerRenderer>
            <fx:Component>
                <components:HeaderRenderer  />
            </fx:Component>
        </mx:headerRenderer>
    One needs to add "flexlib.swc" to access "CanvasButtonAccordionHeader".
    Hope this helps!
    --Tanu

  • How can I stop iTunes from launching when I hit the button on my head phones

    On my MBP I have some head phones that have an inline mic with call answer button. The button on the head phones is fairly sensitive and I tend to bump it on accident often. When I hit the button iTunes is launched or if I have it open it starts music.
    Is there anyway to stop this from happening? This is driving me crazy!

    This problem has been an issue for a number of months and has led to frustration and public humiliation on countless occasions.
    When disconnecting from my Bose Soundlink at home (playing nothing) in order to taking my laptop on the run I open my laptop to find that the entire contents of my iTunes playlist is being belted in public. The subway, the library, my classroom is not the time or place for my laptop to make the decision to begin playing my music without permission. When at home and my Soundlink goes on standby I have nearly had a heart attack when my laptop spontaneously begins blaring my music when I wasn't even touching the thing.
    I love my Soundlink and I love my Mac but together the devices are causing no end of aggravation with no fix in sight. With each OS update I hope the problem is addressed but to no avail, it is getting tiresome that such a flaw isn't being fixed in a timely manner.

  • Assignment number Field in sales order header

    Hi All,
    Can anyone let me know the ORDERS05 IDoc segment that corresponds to the Assignment number field in sales order header Accounting tab?
    I need to specify the assignment number while creating a new order through IDoc.
    Thanks.
    Regards,
    Riyaz

    Hi,
    Use transaction we60 to find the relevant documentation for your idoc type.
    regards,
    Jakub

  • Placing label and an image in Accordion header in flex 3

    Hi all,
    I need to display label and image in accordion header.Please let me know the process.
    Thankig You....

    Hi,
    Pls use the same swc which you are having from the link earlier which is having the CanvasButton.
    After that create the application same as the code is below.It is in the Flex 3.0.I am using three images and 3 labels on the header of the accordion.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
            layout="vertical"
            verticalAlign="middle"
            xmlns:code="http://code.google.com/p/flexlib/">
        <mx:Accordion width="500" height="300"
            backgroundColor="0xCCCCCC">
            <mx:headerRenderer>
                <mx:Component>
                            <code:CanvasButton>
                                <mx:HBox verticalAlign="middle"
                                     horizontalGap="5">
                                    <mx:Image source="logo.png"/>
                                    <mx:Label text="Label 1"/>
                                    <mx:Image source="logo1.png"/>
                                    <mx:Label text="Label 2"/>
                                    <mx:Image source="logo2.png"/>
                                    <mx:Label text="Label 3"/>
                                </mx:HBox>   
                            </code:CanvasButton>
                </mx:Component>
            </mx:headerRenderer>
            <mx:VBox label=" Account Dept.">
                <mx:Label text="Container 1" />
            </mx:VBox>
            <mx:VBox label=" Admin Dept.">
                <mx:Label text="Container 2" />
            </mx:VBox>
             <mx:VBox label=" Sales Dept.">
                <mx:Label text="Container 3" />
            </mx:VBox>
        </mx:Accordion>
    </mx:Application>
    With Regards,
    Shardul Singh Bartwal

  • Where are the home, refresh and X buttons in the header

    When I open my home page on the desktop, there are buttons that let me select home, refresh or X a download. I cannot find these buttons on the header or in the add-ons, etc.

    The '''''Home''''' button was relocated to the right of the Location/URL bar in a prior version. You can drag it to the position you want or get it from the Customize Toolbar window by looking at the following instructions.
    *Click this link --> https://support.mozilla.org/en-US/kb/how-do-i-customize-toolbars
    In Firefox 4 and newer versions, the '''''Go, Stop and Reload''''' buttons are combined in one button at the right end of the URL or Address bar. The button changes depending on the activity:
    *green Go arrow when typing in the address bar
    *red Stop ("X") button while page is loading
    *gray Reload (circular arrow) when page is finished loading.
    Separate buttons are possible:
    #Open Customize Toolbar window by clicking Firefox button > Option > Toolbar Layout '''''OR''''' clicking View > Toolbars > Customize if using the Menu Bar '''''OR''''' right-click in an empty space on a toolbar and choose Customize
    #<u>While the Customize window is open</u>, Stop and Reload buttons will show separated between the address bar and the search bar
    #<u>While the Customize window is open</u>, drag the buttons anywhere on the Navigation toolbar
    #*order Reload-Stop will combine into one button
    #*order Stop-Reload will remain separate buttons
    #*or drag a "Separator" from the Customize window between Reload-Stop and they will remain separate
    #click Done at bottom right of Customize window to finish
    #See: https://support.mozilla.org/en-US/kb/how-do-i-customize-toolbars
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *'''''Adobe Shockwave for Director Netscape plug-in''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Custom Button on Rfx Header Screen

    Hi Friends,
    I want to place one button on Rfx Header,  This is done using Component configurator, now when i click on this Button,  it should run on webdynpro component , can any one give me idea, how to do this
    thnx
    Kumar Srini

    Hi Naresh,
    Please describe me exactly what you are looking for.
    Want to add a custom button on any RF/Custom RF screen? or want to call a url on any associated button to allow change passowrd?
    I think both have different impact on application.
    Sinec RF is totally based on ECC system(Module Pool Screen) so you can easily add a custom button to wherever you want by calling subscreen/add new screen/User Exit etc.
    But for calling a URL would be visible to your RF gun or not ...it is depend on the device not an application.Again you have to configure Service Request for ITS for the URL being generated in Backend as well as RF devices.And then after you can call that URL under the code for that custom button.
    Regards
    Rick

  • Problem with buttons in datatable header

    Hi
    I have command buttons in the datatable header .When I display the data in columns there is a gap between buttons .I want the buttons should be stretched automatically along with column data there should not be no gap between buttons regardless how big the data is in each column.
    Can anybody help me asap.
    Thanks.

    This issue is that the second header is an instance of the first, so all unmanaged relative code breaks. I would hazzard a guess to say that your add code looks like "$.parent.row1.instanceManager.addInstance(1)." This will break, as the "second" header row no longer sees the 'table' element as it's parent.
    Changing to code to a static reference will fix it... i.e. xfa.form.form1.table1.row1.instanceManager.addInstance(1).
    This should solve it for you... if not, let me know.
    - Scott

  • How to include a button in report header like rowspan? &logfile generation?

    I am really new to this form and I have some questions on the APEX HTML DB:
    The project I need to work on is like this: Based on some criteria, I need to do a database lookup. Then in the result, I need to be able to edit the individual record. So far it is no problem. Here comes the part that I am not sure how to handle or if it can be handled.
    1.     We need to have the ability to copy down certain columns value to selected rows. Therefore, a "copy down" button needs to be included right under the column header cell. For example, based on certain criteria, the following product information is returned: product description, serial number, price, category etc. The “COPY DOWN” button needs to be listed right under the “serial number” table header and before the first row of the result, like “rowspan” in html table header. Once you click on “copy down”, the first rows’s serial number will be copied to all selected rows “serial number”. – Can a button be put right under a column header? If so, can I even reference the cell value in javascript?
    2.     Since we are doing the batch update, I need to have the ability to maintain a logfile to include date and time and what information is modified. – Can I generate a logfile from APEX HTML DB?
    I am not sure APEX HTML DB is a good candidate for the above two tasks.
    Your help is greatly appreciated.

    Hi user572980,
    Welcome to APEX... the more you'll do with it, the more you'll like it.
    1) Are you using a Tabbed Form? Or are you in a report? I try to get a better idea what you're trying to do. Did you already have a look at the templates? You can have a template for the report for ex., in that you can adapt like you wish (in your case put a button under the column header).
    You can also reference the cell values, but for that I should know where you're in (form, report). When you click right on the page and have a look at Page Source you see what item (reference) it is.
    2) You can make a logfile yes. Are you using packages to do the batch update? In that you can make some code to store the history. In otherwords, out-of-the-box in APEX I don't think it exists, but with PLSQL you can do it (so also in APEX). For ex. the plsql package stores it in a history table and you built a report on top of that.
    Dimitri

  • Problem applying Spry tool tips to child pages because the head tag is in a locked region

    I’m new to DW and migrating a site from GoLive CS2 to DW CS5. The site uses templates created in GL CS2. I have stripped out as much GL stuff as possible.
    I want to use the SPRY tooltips as a way to show captions for graphics that are on some of the pages (I used to use an Open New Browser window for that but I don’t have as much control in DW as I did in GL). But when I try to apply SPRY tooltips (or any SPRY widget for that matter) I get the following message:
    “Required links could not be added to this file because the <head> tag is in a locked region. To insert this content, open the template file ‘xyz.dwt’ and either unlock the <head> tag or add this content to the template.”
    I am not sure how to go about solving this problem. In the template there is an editable region for adding graphics but in the template itself there are no graphics or anything else to apply a tooltip too. Also in the child pages there may be more than one place to use a tooltip. So that suggests to me that I should not add a tooltip to the template. That brings me to the other option.
    How would I go about unlocking the  <head> tag in the template, without messing everything up?
    Or, should I detach any page from the template when I want to add tooltips then reapply the template? I am planning to ditch the GL template anyway and apply a DW template to all the pages anyway.
    Any suggestions as to what I should do?
    Yours faithfully
    Branko
    PS I’m using Mac with Snow Leopard.

    I found a solution.
    I just made a transparent PNG. Put it in an inconspicuous part of the template. On the child page I could make as many copies as I needed making sure I provided id tags for each use etc.

  • Can i assign a child state to a movie clip that is already placed on stage

    Hello
    Is it possible to add a child state to a movie clip that is
    already placed on stage,
    i need to do this so i can move the movieclip to the top of
    the display list.
    thanks for the help
    mt

    "The objects i want it to appear above are loaded swf's onto
    the same main stage."
    Aha, this is where things can get confusing. The terminology
    between the Flash Authoring tool and ActionScript is not
    consistent.
    In ActionScript, the Stage is the top most DisplayObject. You
    probably get that.
    In Flash, the canvas that is often referred to as "the stage"
    is not the Stage object of ActionScript, rather the Flash stage is
    a DisplayObject class called MainTimeline (or if you assign a
    document class, it's that class), which is the first and only child
    of the ActionScript Stage object. It's the only child unless, of
    course, you add something else to the ActionScript Stage object at
    runtime... like a loaded swf. ;)
    So in other words, if you are doing anything like this:
    stage.addChild(myLoadedSWF)
    You are actually putting myLoadedSWF above the MainTimeline
    object, which is the entire Flash timeline. There's nothing wrong
    with that, but in this case it means changing the depth of things
    inside the MainTimeline is not going to change the fact that the
    MainTimeline itself is below myLoadedSWF.
    Most likely the simplest solution is to add your loaded SWFs
    to the property "root", not stage. root can refer to different
    things in different places, but most of the time it refers to the
    MainTimeline, and if I had to guess I would say it almost certainly
    does in your case. Note that the "root" property is typed as a
    DisplayObject, not a DisplayObjectContainer, so addChild (which is
    a DisplayObjectContainer method) will not be recognized unless you
    typecast to DisplayObjectContainer or a subclass of
    DisplayObjectContainer, like Sprite or MovieClip:
    MovieClip(root).addChild(myLoadedSWF)
    Also note that, unlike AS2, in AS3 it's very easy to simply
    add your loaded SWF below existing objects you create in Flash. You
    can use addChildAt(obj,0) for instance to add it to the very
    bottom.

  • Edit button in email heading disappeared

    On my iPad Air the heading above the lists of emails in my inbox disappeared so I can not edit the messages or move back to other inboxes. I would like to know how to restore it.

    To move back to the list of your other mailboxes - tap the word Mailboxes in the upper left corner of the mail app. If you have a POP account, you will not see an Edit button at all until you are into the In Box, Sent Folder, Trash folder.

Maybe you are looking for

  • Two or three languages in my WEB SITE

    Hi, my name is Jordi, from Barcelona, Spain. I have I question: I need duplicate my hall site built in spanish, in another language, for exemple, in catalan and in english. I want to have the three possibilities in every page, and the people to be ab

  • ITunes gift cards - how do you use them in the volume license store?

    I am the IT admin at a K12 institution. I have two major issues. First, I used my personal email address as the administrative user for the volume licensing program. Even though that account is used as an ADMINISTRATOR for the volume licensing progra

  • FAQ's on SQL and PL/SQL

    Hi All, Please send me FAQ's on Oracle SQL n PL/SQL except available in "allinterview.com","geekinterview.com","appsking.com". Thank you.

  • JPanel sometimes doesn't display correctly

    I have this JFrame which contains a single JPanel as its content pane. I have the paintComponent() overriden so that the panel paints a background that creates the basis for the GUI. The problem is that sometimes when I run the program (I've tried it

  • Capture through firewire card

    hello friends, I want to capture video using firewire port in my laptop. Is it possible to capture through firewire card?... If so how can i do it?. Please help me .... regards