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

Similar Messages

  • 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

  • I want to set text label and set filter value as header  in query

    i want to set any text label or i want to design query in such manner that whatever the value is selected by client in selection screen  is become heading in query . like if i select posting date then that range should be displayed in heading portion of the query.
    Edited by: Viral  Shah on Jan 23, 2008 8:30 AM

    Goto teh Query Description and select the Text variable Icon (yellow coloured). Create a Text variable with processing type as Replacement path and give the Characteristic as the posting date.
    If you are having range then you need to create two Text variables one for FROM and other for TO. Use both the text variables in teh query description..

  • Convert image file names to labels and resizing images according to frame. Possible??

    Hi all,
    I have posted this question hastily in the main mac forum but then i realized it is a scripting question so I repost here.
    Q1: I have a client with 700+ images who has named the images with numbers and the caption:
    eg: 1.II.34. Walking down the road towards the building.tiff
    This is the name of the image file itself
    Is there a way to import the name of the file (possibly without the extension) and place it as a caption under the image without copying and pasting? A script maybe?
    I tried the labelgraphics script. Unfortunately it returned the extension as well. I was given a solution but did not work for me since it deleted everything after the first dot on the name. This was:
    in labelgraphics on line 105, change
    myLabel = myLink.name
    to
    myLabel = myLink.name.split('.')[0]
    So how can we tackle this so it deletes everything after the LAST dot?
    Q2: The image files I am given are all huge tiff files. I use the full 100% of the images but in my document they have to be much smaller . They are usually scaled down to 25-35% of the original file. So I end up with huge, unneeded documents.
    Is there a script that would work together with photoshop maybe?
    It would need to read the frames dimensions the image is in, open the linked file inside photoshop, resize it with a specified interpolation to maybe 110% of the frame's dimensions, set the resolution (if not set) to 300 dpi save the image as a copy (or with a suffix or prefix), leave photoshop open (for the next image to be processed), relink to the new image and go to the next image
    I know it sounds a lot but I was amazed by the issues people handle in this forum and thought I would give it a try
    Thank you in advance
    Michael

    Peter thank you so much. It works like a charm.
    As for Q2, I spent some time doing research and came up with a couple of scripts that sound like they could do the trick.
    a) Image Transform or Rasterize
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1509 022#
    b) Resample Project Images to 100%
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1612 518#
    Still, since I am such an ignorant I do not know which one would be the proper one.
    Any suggestions would be highly appreciated.
    Thank you once more
    Michael

  • Placing OS image and Data image on right partition

    Hi ,
    We are facing issue in placing right image at the right partition. 
    We have OS image and data image. We are formatting and partitioning HDD as 40% (OSDisk) and remaining 100% as (Data). Both paritioons are active and selected as primary. 
    Then in installing operating system step, i have selected place image based on variable 'OSDisk'
    and Data image is also slected to be placed based on variable 'Data'.
    TS finishes without any issues but when i login to the machine i can see that OSDisk has become 'D' Drive and Data Drive has become 'C' so it shows C drive with label as 'Data' and D drive is label as 'OSDisk'
    I want to place OS on C drive and Data drive should always be as 'D' drive.
    I have tried another method and this time i tried to install OS as 'place based on stored variable i.e. OSDisk but install data image as next available partition but with this placement OS never boot after restart and TS eventually fails. 
    My aim is to make 'C' drive contain OS image and 'D' Drive to containg  data image content and not the otherway around as it is happening with current test. 
    Any suggestions will be highly appreciated. Thanks. 
    Regards,

    Hi ,
    Yes it is Config manager 2012 R2 but image is actually not source media install.wim. It a custom captured image through MDT2013. Image has 1 partition only.
    However I tried the above solution but drive letters are still not coming correct for OSDisk and Data Drive. Data is coming on 'C' drive and OSDisk is coming at 'D' drive.
    Regards,

  • How do i add images in the header and footer to a PDF using iText

    Hi ,
    I want to add images to the header and footer of every page while i am genrating a pdf i have created a separate class called EndPage which i am instanceiating its default constructor in another class 's button action method.
    The above code genrates a PDF for me however it genrates a file with file size zero bytes and does not open it following is my sample code
    //**********Any Help would be appreciated
    Thank You
    public class My_Class
    public String pdf_action()
    EndPage ep=new EndPage();
    return null;
    }//My_class Ends
    class EndPage extends PdfPageEventHelper
    * Demonstrates the use of PageEvents.
    * @param args no arguments needed
    public EndPage()
    try {
    com.lowagie.text.Document document = new Document(PageSize.A4, 50, 50, 70, 70);
    PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("D://proposals/endpage.pdf"));
    writer.setPageEvent(new EndPage());
    document.open();
    String text = "Lots of text. ";
    for (int k = 0; k < 10; ++k)
    text += text;
    document.add(new Paragraph(text));
    document.close();
    catch (Exception de) {
    de.printStackTrace();
    public void onEndPage(PdfWriter writer, Document document) {
    try {
    Rectangle page = document.getPageSize();
    PdfPTable head = new PdfPTable(3);
    for (int k = 1; k <= 6; ++k)
    head.addCell("head " + k);
    head.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
    head.writeSelectedRows(0, -1, document.leftMargin(), page.height() - document.topMargin() + head.getTotalHeight(),
    writer.getDirectContent());
    PdfPTable foot = new PdfPTable(3);
    for (int k = 1; k <= 6; ++k)
    foot.addCell("foot " + k);
    foot.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
    foot.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin(),
    writer.getDirectContent());
    catch (Exception e) {
    throw new ExceptionConverter(e);
    }

    Hi,
    Thanks for the quick response.
    The problem is that when I keep the logo as a watermark, the pdf is not adjusting itself to include the logo as header.
    But if I add a header text via Tools -> Headers and Footers, the pdf is adjusting itself so that the header text is at the beginning , not overlapping with the contents of pdf.
    But while using logo as watermark, some times overlapping of the pdf contents and logo is happening.
    Is there any way to add a logo in the Header and Footer via the option in Tools -> Headers and Footers
    Thanks,
    Vidhya

  • How to add header and footer image in pdf

    Hi,
    I want to add image in header and footer for the pdf generation.
    how I can add this? Following my xsl
    ?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:fn="http://www.w3.org/2005/xpath-functions">
    <xsl:output method="xml" indent="yes" encoding="utf-8" omit-xml-declaration = "yes" />
    <xsl:template match="/">
    <fo:root>
    <fo:layout-master-set>
    <fo:simple-page-master master-name="my-page">
    <fo:region-body margin="1in"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="my-page">
    <fo:flow flow-name="xsl-region-body">
    <fo:block >
    <xsl:apply-templates mode="dump" select="/session/entity/instance/attribute"/>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>
    </xsl:template>
    <xsl:template match="*" mode="dump" priority="100">
    <fo:block >
                   <fo:block margin-left="1cm">
                        <xsl:for-each select="@question-text">
                        <xsl:value-of select="."/>=
                        </xsl:for-each>
                        <xsl:if test="string-length(normalize-space(text())) > 0">
                        <xsl:value-of select="text()"/>
                        </xsl:if>
                   </fo:block>
    <xsl:apply-templates mode="dump" select="*"/>
    </fo:block>
    </xsl:template>
    </xsl:stylesheet>
    Edited by: 848231 on Apr 6, 2011 1:42 AM

    Hi,
    Here is one way of putting an image in the header:
    <fo:layout-master-set>
        <fo:simple-page-master master-name="my-page">     
          <fo:region-body margin="1in"/>
          <fo:region-before extent="1in" background-color="silver" />
        </fo:simple-page-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="my-page">
         <fo:static-content flow-name="xsl-region-before">
             <fo:block height="150px" width="1024px" background-color="white" >
                 <fo:external-graphic src="http://localhost:9000/web-determinations9000/images/Header.jpg">
                 </fo:external-graphic>
            </fo:block>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">
        </fo:flow>
      </fo:page-sequence>One good XSL:FO refernce: http://www.learn-xsl-fo-tutorial.com
    Hope this helps.
    Thanks,
    Aakarsh
    Edited by: aakarsh on Apr 6, 2011 6:40 AM

  • Making some texbox and image invisible from header in the second page and third page only

    i have written this expression for the image
    =iif(Globals!PageNumber= 1,false,True)
    the problem is, it is repeating in every pages, i want it to be displayed in the page one only, when the rdlc report is generated in the report viewer

    Hi aki.mary,
    According to your description, you added textbox and image to page header, now you want to display them on the first page, on other pages, their visibility is set to false, but the image is visible on every page.
    I tried to reproduce the issue in my local machine, but it works fine for me. I set visibility of textbox and image by following steps:
    Right-click the image, click Image Properties.
    Click Visibility in left pane, select Show or hide based on an expression.
    Click (fx) button and type the expression: =iif(Globals!PageNumber= 1,false,True).
    The following screenshot is for your reference:
    In order to improve the efficiency of troubleshooting, please provide detailed information of the report. I would be appreciated it if you could provide steps you created the report and screenshot of the report. By collecting this information now, it will
    help us move more quickly toward a solution.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • I can select a rating and a color label for my images, but I can not sort by rating and color label.

    I can select a rating and a color label for my images, but I can not sort by rating and color label. when I click on the filter drop down, color label is not one of the options.  how do I get both ratings and color lables as an option to sort with.

    You can Filter (not sort) on both color label and rating if you want, open the Filter Bar with the backslash key, then click on Attribute, and then select the stars and color label of interest. If you really meant "sort" and not filter, then you can't do this in Lightroom.

  • In IMovie my project view is fine until it is finalized and then images are getting partially cut off on top(people's heads etc) Is there something I can do?

    In IMovie my project view is fine until it is finalized and then images are getting partially cut off on top(people's heads etc) Is there something I can do?

    My issue turned out possibly being a larger problem. 
    All of a sudden the server is in a bad, bad way.  30 minutes to get booted to the login screen.  If I try to login I get beachballs for half a second at a time.  I type login/password, the screen refreshes and I'm back to the login screen.  I can't connect a keyboard/mouse directly to it, because it wants to do the keyboard recognition (I'm not using an Apple keyboard because they're all Bluetooth and I can't get in to do the Bluetooth sync).  I can't do Disk Utility, because I can't connect a keyboard to do the key shortcut.  I can't do Hardware Test, because I can't connect a keyboard to do the key shortcut.  Can't reinstall Snow Leopard Server, because in their infinite wisdom Apple has removed the optical drive, and even if I had the optical, it wouldn't do any good because I can't connect a keyboard to do the key shortcut that would allow me to boot from the DVD.
    I tried to do target disk override from Remote Desktop but it won't let me choose my other Mac's Remote Disc as a boot option.  It also continues to show the Server as "Offline" even though power is on and it's on the network.
    I would do my 2010 Air's USB drive - just to do a Disk Utility and see if it's a drive problem - but I can't tell the Server to boot from the USB stick.
    Tried using my iMac as a monitor, that worked for a while, now it just flashes and then goes back to the iMac.
    I'm thinking the logic board on this thing is about to die.  Which is unfortunate, since my company opted out of AppleCare for this piece of equipment, and the 1 year expired last month.  So...if the repair is going to end up being $800, they're going to have to pony up for a new server.

  • Adding images to the header & footer in Pages for the iPad

    How do I add images i.e. logos into the header and footer in Pages for the iPad.

    I do not beleive Pages for iOS allows insertion of images into the header or footer, just the background of the page body. It can however be placed behind the header. (Tools icon (wrench - upper right of screen) > Document set up

  • Phtmlb: space between Label and Field

    Hello,
    I am using <phtmlb:matrix> to arrange the fields next to one another on the view. For fields, <phtmlb:formLayoutInputField> is used in which case the label is taken automatically through binding to DDIC fields. At one particular row of matrix, it is required to break-up the cell in 3 more cells, so that I can display 3 fields adjacent to one another in the space of one cell. For this I am nesting one more matrix inside the outer matrix.
    Something like this...
    <phtmlb:matrix>
    <phtmlb:matrixCell row = "1"
    col = "1" />
    <phtmlb:formLayout>
    <phtmlb:formLayoutInputField>
    </phtmlb:formLayout>
    <phtmlb:matrixCell row = "2"
    col = "1" />
    <phtmlb:matrix>
    <phtmlb:formLayout>
    ...3 fields next to one another / 3 cells
    </phtmlb:formLayout>
    </phtmlb:matrix>
    </phtmlb:matrix>
    I am able to acheive the desired output of 3 fields next to one another, but facing the following problem.
    To get the inner matrix(3 fields) into effect, i need to close the <phtmlb:formLayout>.
    Now, the first row properly shows all the filds one below the other with proper spacing between the label and input output field.
    (Actually all the input_output fileds are placed at a distance of largest text/label in one formlayout).
    But when the second row starts, the spacing between label and field is no longer taken as per the first row in above case.
    Is it because since a new <phtmlb:fomlayout> is started , the spacing will be as per the elements in this new formlyout. If yes, How can I assure the same spacing between elements of two different formlayouts. I tried "fieldToLabelFactor" but since no. of fields in my page is too large, I can't afford to decide this factor for every <phtmlb:formLayout>.
    Or is there any better way to acheive the required output.
    Thanks ,
    Priti

    did u get the solution?

  • Error message when I try to add an image to the header

    I receive the following error message when I try to add an image to the header:
    Acrobat.com encountered an unexpected error.
    I have tried to add .jpg and .gif without success.
    Thanks,
    MDawn

    Hi,
    We typically see this when an organizations IT department is blocking the upload of images.  Are you working on this at work?  If so, can you try adding the image outside your companies network?
    Thanks,
    Todd

  • Help with managing RAW and jpeg images and installing iphoto 9

    Greetings: Fist, let me make the neophyte apology and plea - I'm sorry, I should have come here first; I didn't and now I need your help.
    I have just purchased a macbook pro (still in its box) with updated software for my older imac os x. I have a number of Canon related photo editing programs (that came with my 40D digital SLR) and Adobe photo elements 6 for mac on the imac. Following some erroneous advice I have made a complete mess of the pictures folder's content by trying to delete images directly from that folder (there are now 6000+ images in the folder, many of which are duplicates(?). Most of the images are not tagged or labeled and some have been organized in/by iphoto (I corrupted the iphoto's library structure very early on by disrupting and editing its images - which might explain why iphoto had a difficult time 'finding' and displaying some of my photos). The picture folder now holds jpegs, smallRAW images (a Canon 40D photo format) and various duplicates of the orignal images - (some of the duplicates don't display as images, but as jpeg logos, which, when opened contain duplicate image or are completely black) The first time I downloaded RAW images into iphoto 6 the RAW data displayed as a black image. When shooting in smallRAW on the Canon 40D, the camera produces a jpeg image for 'easy viewing and editing in the camera' but it looks as though iphoto 6 made duplicates of the jpeg and the RAW data and stored them in different locals in the picture file. In an attempt to get the number of images down, I have been trying to delete them from the picture folder. (My daughters both download images rather indiscriminately in hopes of 'editing them on the computer' which inevitably does not happen) and there is a lot of experimental bracketing of images - shooting raw and different Camera formats etc., all of which need to be cleaned up before I proceed.
    Sometime in the not-too-distant future I would like to have iphoto 9 running on my imac with a clean library of images and a seamless way of downloading, editing and storing images (including the RAW data).
    The macbook pro is for my highschool-aged daughter, who will run iphoto 9 but not have any RAW image data on her system. She would like to copy some of the old iMac's images to put into her own iPhoto 9 library (probably using a disk, email or on-line photo service - ideally, I would like to be able to copy and remove a number of those images from my HD and give them to her for the macbook)
    A few questions and queries: Can I 'dis-able' iphoto 6, while I delete images (RAW and jpeg) from the picture file? (and is this even a good idea).
    Once I have edited the # of images down to a reasonable size, should I re-launch iphoto 6, rebuild the iphoto library and then update to iphoto 9 or skip v6 and rebuild with v9?
    And now for the 'how stupid is this guy question' - I really had planned to purchase an external backup; but between new the macbook, car repairs and braces it has never come to fruition. So, I have never properly backed up my images. What is the bare-bones, least expensive method for me to do this? I'd even consider burning everything to disks if that works. I can't afford the $ to purchase a new external hard drive right now (really). Budget is set aside mid-November for one though.
    I've been looking through some other discussion boards and it looks like I'm not the only one having RAW image issues. I know that shooting smallRAW with the companion jpeg is probably not helping things but I take my camera equipment on extended canoe trips - and we like the ease of on-the-spot editing with this format.
    Thanks in advance for your help - Mark

    Terence, Is the picture folder the primary source for the images or does that data reside somewhere else?
    If you gathered them there, then yes.
    I really don't want to have to go through 14,000 images looking for the pictures that I want to keep (or is that my only option?).
    Only you can decide what you want to keep.
    Why does the computer keep making copies of the images and filing them under date and events?
    That's how iPhoto works. It's not a problem usually, only you did go in there and make a problem, and now we are trying to fix it.
    You advise not to muck around in the picture file via preview,
    No I don't. I advise not to much around in the iPhoto Library Folder.
    but if I download images through a program other than iPhotos - image capture or adobe aren't I doing that anyway?
    Adobe what? Adobe is a software manufacturer who make many excellent applications, you need to be more precise. And no, if you import photos with Image Capture or “adobe” no you are not interfering with the iPhoto Library Folder.
    Can you edit a base image file somewhere and remove it from the HD without iphoto making a copy of it and storing it somewhere else?
    This is stunningly easy. Don't use iPhoto. Use an image editor.
    I want to look the negatives, decide which ones I want and throw the rest away. Can that be done or am I way off course?
    Yes, and iPhoto (or similar apps) make this really easy.
    Hook up your camera. Import the pics to iPhoto. Go through the imported pics. Trash the ones you don't want. Then process the ones you do. But you must learn how to use iPhoto to do this successfully
    To trash: put the pic in the iPhoto trash and empty it. This removes the file from iPhoto and the Hard Disk.
    Process it: If you want to use another editor: You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • Why can't I insert an image into the header in Pages 5.0.1?

    In previouis versions of Pages, I was able to insert an image into a Header or Footer.
    This action does not appear an option in Pages 5.0.1.
    Am I missing something?
    I must say, I do not like the NEW interface. Much has been lost with the transition to the Cloud.
    I like the concept of using my iPad Air and my desktop, however functionality has been tossed out for deference to the Tablet.

    KT,
    Use a "Floating Graphic" and send it to the Section Master in the Arrange > Section Master menu. Floating is called Stays With Page now. Don't worry about it not being in the Header field. It will serve the purpose.
    Jerry

Maybe you are looking for

  • Debugging Smart form-Shipemnt-Driver program

    Hai, I have created a smart form & output type configuration is done for shiptment. scenario 1: I set a break point in driver program.When I go to VT02n & entered the shipment number & follew the below steps in the VT02n scree. 1.select Shipment->out

  • I Need To Update Apps But It Says My Security Code Is Invalid When It Isn't. What Do I Do?

    I Hate Seeing The Annoying Notification Plus I Would Like To Download New Apps That Aren't Free :(

  • Hide Specific Datagrid Column Header

    Hi, I'm asking for if ther is a method to hide a specific datagrid header colum; The showHeaders property of datagrid give me the possibility to set the visibility of all datagrid header column. There is a way to hide, for example, the header of firs

  • CM 7.0 cluster licensing

    We have to build a CM 7.0 cluster based on MCS-7835-H2 servers consisting of the following components: - One Publisher Server - Four active Subscribers - Two redundant Subscribers; - Two TFTP Servers. The total number of MCS-7835-H2 servers is 9. How

  • JDBC Driver problem when using JDeveloper 10.1.2 with JDK 1.4

    I hope someone can help me solve this problem (which I am sure others have encountered). The JDK that is downloaded together with JDeveloper 10.1.2 is JDK 1.4.2. However, I believe the JDBC jar files that comes together with JDeveloper 10.1.2 are for