Add image to button

Hi @ all,
I want to use a button, which has a picture an no text. I have seen that it is possible to add a picture by using the "imageSource" property.
Does anybody know what I have to fill in the imageSource string property? And where I have to put the image that I want to display?
Kind Regards,
Dennis

hi,
put the image in the
src->mimes->component folder
specify the file name in the imageSource property

Similar Messages

  • How could i put image in button bar

    import events.ToolbarEvent;
    import mx.events.FlexEvent;
    import mx.events.ItemClickEvent;
    import mx.events.SliderEvent;
    import mx.core.*;
    import spark.skins.spark.ImageSkin;
    import ui.presenters.MainPresentationModel;
                [Bindable]
                public var fileButtons:Array = [{label:"Open"},{label:"Save"}];
                [Bindable]
                public var navButtons:Array =
                    {label:"Adjust",state:MainPresentationModel.ADJUST_STATE},
                    {label:"Touchup",state:MainPresentationModel.TOUCHUP_STATE},
                    {label:"Effects",state:MainPresentationModel.EFFECT_STATE}
                [Bindable]
                public var historyButtons:Array = [{label:"Undo"},{label:"Redo"}];
                private function handleFileClick(e:ItemClickEvent):void
                    if (e.label == "Open")
                        dispatchEvent(new ToolbarEvent(ToolbarEvent.OPEN));
                    else if (e.label == "Save")
                        dispatchEvent(new ToolbarEvent(ToolbarEvent.SAVE));
                private function handleNavClick(e:ItemClickEvent):void
                    callLater(handleNavigation,[e.item.state]);
                private function handleNavigation(state:String):void
                    if (navBar.selectedIndex == -1)
                        dispatchEvent(new ToolbarEvent(ToolbarEvent.SHOW));
                    else
                        dispatchEvent(new ToolbarEvent(ToolbarEvent.SHOW,true,false,state));
                private function handleHistoryClick(e:ItemClickEvent):void
                    if (e.label == "Undo")
                        dispatchEvent(new ToolbarEvent(ToolbarEvent.UNDO));
                    else if (e.label == "Redo")
                        dispatchEvent(new ToolbarEvent(ToolbarEvent.REDO));
                private function handleZoomChange(e:SliderEvent):void
                    dispatchEvent(new ToolbarEvent(ToolbarEvent.ZOOM, true, false, null, e.value));
            ]]>
        </mx:Script>
        <mx:ButtonBar dataProvider="{fileButtons}" itemClick="handleFileClick(event)"   />
        <mx:ToggleButtonBar id="navBar" dataProvider="{navButtons}" toggleOnClick="true"
            creationComplete="event.target.selectedIndex=-1" itemClick="handleNavClick(event)"/>
        <mx:Button label="Show Source" click="dispatchEvent(new ToolbarEvent(ToolbarEvent.SRC))"  />
        <mx:Spacer width="100%" />
        <mx:ButtonBar dataProvider="{historyButtons}" itemClick="handleHistoryClick(event)"  />
        <mx:HSlider value="1.0" minimum="0.1" maximum="3.0" snapInterval="0.1" liveDragging="true" change="handleZoomChange(event)" />
    </mx:HBox>
    using this code what shoud i do to add image on button bar

    I would extend the button bar and in create children I will add the image.

  • Add Image to a Conformation Dialog box button

    Hi All,
          Ho to add Image to a Conformation Dialog box button?????
    2. How to put <b>X</b> (to cancel) at right upper corner of dialog box.
    null

    Hi ,
    It would not be possible to add images in it. Use dialog boxes instead.
    Create a view ... add an image UI element ..use imgSource as ~sapicons/image name or paste the image in src/mimes/components/ur comp name and give that for source.
    You can create linktoaction.. and on its image property add an image for X and put that in one corner of the dialog box. and execute cancel action. when its clicked..
    Regards
    Bharathwaj

  • Can I add images to my radio buttons in sharepoint ? If so, how do I add images to my radio buttons in sharepoint?

    Hello,
    I would like to add Images to my radio buttons in sharepoint input form. Has anyone tried this and succeeded? If so what did you do?
    I have a "how are you feeling section?" and rather than use words like Happy or Sad; I'd prefer to have a smilie face or a sad face.
    I tried leveraging off the text in the column entry screen (inserting <img) tags and inserting common string combinations that retruned smilie images from Lync/ Im or Skype...
    Any help would be appreciated.
    Thanks !
    Philip

    Hi,
    If it's InfoPath form that you are talking about, then its quite simple. Follow the below mentioned steps,
    1. Add option Button control field(two buttons for happy and sad)
    2. You are supposed to type in the option for the button(like Happy and Sad in words) following each radio button.
    3. Instead of typing there, add a picture control and make it read only. Put the smiley as the default picture of the picture control through picture control properties.(you can browse for the pic from your PC).
    Hope it helps!
    Thanks,
    Tamilarasan R.

  • Is there a way to add images , text and button in the individual marquee of a carousel

    Is there a way to add images , text and button in the individual marquee of a carousel ?

    Write a custom carousel.  Usually carousel components are just ULs that use something like jQuery to rotate through the LIs.  The foundation carousel component is really just designed for some specific use cases.  Generally I would just recommend rolling your own.

  • Add Image button on Gumtree unresponsive.

    Whenever I try to post an ad on gumtree, I go to click on the "Add Image" Button and all it does is take me back up to the top of the screen. Doesn't refresh page or anything, just takes me back to top of page.
    Any ideas? It's frustrating having to use a different browser just for that.

    I assume you already tried making an exception for the site in Adblock Plus... since the problem relates to ads...
    ''Did this feature ever work in Firefox?'' If so, you could try clearing your Firefox cache and your saved cookies for the site. (Steps for that are listed below.)
    ''If that button never worked in Firefox,'' have you considered possible interference by add-ons? You could test whether Firefox can work with the site when your extensions are deactivated by opening the site in Firefox's Safe Mode. (Steps for that are listed below.)
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    orange Firefox button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?
    Trying Firefox's Safe Mode is a standard diagnostic technique to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • How to add an image or button to an AdvancedDataGrid cell with wrapped text alongside

    I have an advanced data grid with which i need to add either
    images or buttons to individual cells alongside the text.
    This i can do, but what i can't figure out is how to make the
    text wrap.
    Currently, I can make cell text wrap by using an itemRenderer
    which extends Text. Or, I can add an image or button to a cell by
    using an itemRenderer which extends HBox and contains an image or
    button child. To this HBox i can add a Text or Label object also,
    but i can't make the text wrap.
    Does anyone have any ideas/suggestions/solutions????
    Thanks
    Mark

    "ms10" <[email protected]> wrote in message
    news:g8jlb5$l6p$[email protected]..
    >I have an advanced data grid with which i need to add
    either images or
    >buttons
    > to individual cells alongside the text.
    >
    > This i can do, but what i can't figure out is how to
    make the text wrap.
    >
    > Currently, I can make cell text wrap by using an
    itemRenderer which
    > extends
    > Text. Or, I can add an image or button to a cell by
    using an itemRenderer
    > which
    > extends HBox and contains an image or button child. To
    this HBox i can add
    > a
    > Text or Label object also, but i can't make the text
    wrap.
    >
    > Does anyone have any ideas/suggestions/solutions????
    I'd look at the code for AdvancedDataGridGroupItemRenderer
    and try to see
    what keeps it from displaying an icon in the columns that are
    not grouping
    columns. I'd then extend it to change that and use an icon
    function.
    HTH;
    Amy

  • The add image button is grayed out.  I am using Story Free but have a Cloud license.  None of the upgrade buttons work.

    I have a cloud license but am not able to upgrade Story Free to the Plus version for some reason.  In any case I cannot add images to my multi column script because the add image button is grayed out.  Any ideas would be welcome.

    You should be able to go to https://creative.adobe.com/redeem, sign in and enter the code.

  • 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 do I add a Linkedin button to my email signature in Outlook 2011?

    Hi,
    I'm trying to add a Linkedin button to my emails, or an image of a linkedin button hyperlinked to my profile, but not having much luck. I'm using a Macbook Pro with Lion and my email client is Outlook 2011.
    Does anyone have any idea how to do this?
    Cheers,
    Alex

    I would like to know how to do this as well. All I'm able to do is add the link, but not the button. My colleague has done this on his Outlook on his HP. I'm not sure why this is so difficult!

  • Cannot add image/photo in Pages

    When I tap on the button to add a photo, my list of libraries comes up.
    When I try to drag a photo over to my Pages document, nothing happens. How exactly do you add images to a Pages document?
    Thanks,
    Aaron Kulbe

    I have the exact same problem. With both Pages and Numbers for iPad.
    I have a topic of my own but haven't had any responses yet. I've tried reinstalling both apps but it didn't work.
    http://discussions.apple.com/thread.jspa?threadID=2636052&tstart=0
    Does anyone have a solution yet?
    Bas
    Message was edited by: BasWind

  • How to use an image as button?

    I want to set an image as the background of a frame, and also want use four regions of the image as four buttons. How?

    How about an image on the JFrame with four JButtons with some type of image (even if you copy a piece of you original image to place on the button)? I played around with this and its kind of neat. Easier from a gui perspective to see buttons than flat regions -
    Have fun
    //in a class that extends JFrame, create the image panel and add buttons with icons to it...
    Container contentPane = getContentPane();
    ImagePanel imagePanel = new ImagePanel(); //see below
    contentPane.add(imagePanel);
    JButton button = new JButton();
    button.setIcon(new ImageIcon(WorldMap.class.getResource("someGIF.gif"))); //or other form of getting and setting an icon
    button.setSize(65,45);
    mcsButton.setLocation(405,175);
    mcsButton.setContentAreaFilled(false); //important so the button looks like a raised part of the picture...not a grey box with an icon.
    mcsButton.addMouseListener(new MouseAdapter()
    public void mouseClicked(MouseEvent e)
    //do something
    imagePanel.setLayout(null);
    imagePanel.add(mcsButton,null);
    //code to put an image on a JPanel I received from this forum
    class ImagePanel extends JPanel
    private Image image;
    public ImagePanel()
    image = Toolkit.getDefaultToolkit().getImage("C:/WholeWorldViewJPG.jpg");
    MediaTracker tracker = new MediaTracker(this);
    tracker.addImage(image, 0);
    try
    tracker.waitForID(0);
    catch (InterruptedException e)
    public void paintComponent(Graphics g)
    super.paintComponent(g);
    Dimension d = getSize();
    int clientWidth = d.width;
    int clientHeight = d.height;
    int imageWidth = image.getWidth(this);
    int imageHeight = image.getHeight(this);
    g.drawImage(image, 0, 0, this);
    for (int i = 0; i * imageWidth <= clientWidth; i++)
    for (int j = 0; j * imageHeight <= clientHeight; j++)
    if (i + j > 0)
    g.copyArea(0, 0, imageWidth, imageHeight, i * imageWidth, j * imageHeight);
    }

  • "Add New Tab" button does not exist in the Window -Customize Toolbar, and not on my Navigator toolbar. Where can I find one to put on my Navigator toolbar, please?

    I see "Add New Window" but..."Add New Tab" button does not exist in the Window -Customize Toolbar any longer, and not on my Navigator toolbar. Where can I find one to put on my Navigator toolbar, please?
    Thanks

    It's the "+" on the Tab bar. You can move it to the Navigation Toolbar if you prefer. When you start Customize, the + moves to the far right end of the Tab bar. You can drag it where you want (see attached image).
    Any luck?

  • "Add Images" option not showing in Muse Slideshow

    I've also tried > Edit > Place > (my images) and they aren't going in the slideshow.
    And since the button to 'Add Images' is missing from the Composition Options for my slideshow I am unable to change the images.
    Help please? Many Thanks.

    Hi WebLadyKim,
    It looks to me like you are using the wrong tool for creating Slideshows? I say that because as I see in your screenshot it says 'Composition Options' at the top of the dialog box. This tells me you are using the 'Composition' tools instead of the 'Slideshow tools.
    You should see 'Slideshow Options' at the top instead if using the right tool.
    If I am wrong, can you tell me what Slideshow from the panel you are using?

  • Help with images and buttons

    I was wondering if anyone could recommend a tutorial or point me in the right direction. I've been trying to figure out how to use buttons to add images (been using png from photoshop with alphachannel) to a canvas. I don't have any problems skinning the buttons nor putting in a single image, nor text. As far as getting the images to layer when the buttons are clicked then I'm pretty lost. Not sure if an array is best or if adding and removing them as children in another container would be any easier..

    I've been using flash builder beta 2. I was planning on embedding the images. I'm not sure if the help files and examples I am reading are not compatible or if I just have the syntax wrong. I haven't been able to find any examples that use embedded images and toggle visibility. I've used spark components. In design mode it puts the code in for a button when drag-dropped, then recommends using spark component instead. It seems that the only time that the images really do anything is when there's a spark component.
    I've never used flex before would it be easier to use wordpad and try compiling it with something other than flash builder?

Maybe you are looking for

  • OnEnter event not triggering in standard WD

    HI Experts, I am creating a view enhancement in standard WD component. I have craeted an action for Onenter event for an input field. When i press enter after selecting that field, the action is not triggered and hence my event handler method is not

  • How do I recover bookmarks from a broken computer?

    I had one of the newer versions of Firefox running on a windows 8 Laptop. I fried the Motherboard and have been getting a blue screen for the last week. I was able to hook up the hard drive from that laptop on my desktop (Windows Vista) with a SATA -

  • 802.11n For 24" iMac.

    I have read that my Intel Core 2 Duo 24" iMac has 802.11n wi-fi support built in but that it will cost me $1.99 (£1.01) to download the software which will enable me to step up from 802.11g. Where can I find this software in order to download it?

  • Creating new loop sections

    my question is can you create new loop sections to hold the loops because i want to be able to see the entire list of loops at once Message was edited by: thatdude38

  • Elements 11  will not open...no previous problem before 2/08/12

    Elements 11 will not open..no previous problem before 2/08/12