Runtime Button Icons

Hi Ladies and Gents,
Just hoping someone out there can point me in the direction
of what I want.
I was trying to load a PNG Button Icon into the button at
runtime.
Something to this effect, would be lovely.
<mx:Script>
<![CDATA[
[Bindable]
public var logo:Image = new Image();
//When the system starts...
public function startFlex():void {
//Load the logo...
logo.source = "logo.png";
]]>
</mx:Script>
<mx:Button id="button" x="0" y="0" width="150" height="60"
icon="{logo}"/>
Cheers
Oz

if you want to display icons on button at run time the way to do this is as follow these steps to resolve your problem.
1-set the button property iconic=Y
2-give the file name forexample book or xyz etc
do not put path here just give the name of the file only name .
3-now open registry go on oracle see list of oracle related items in registry as u
put form_path or report_path check the following
T_25_ICONS or may be T_21_ICONS
when u double click it opens and u put the path of u folder in which all files those u want to show on buttons are .
but be sure u put path first , if any path given by default , u must put u files path betore that .
Arshad

Similar Messages

  • Setting Button icon source with variable at runtime ?

    I have an application that requires me to use a relative path
    for my flex buttons. The problem I'm having is trying to set the
    relative path with a variable that gets passed in at runtime. Is
    this possible ? I will not always know where the application is
    being run from so I need to pass in the current directory (from a
    .net application by the way, which works great.) and use that as
    the relative source for the button icons.
    Make any sense ?
    Thanks in advance for any help !

    Impossible AFAIK.
    Extend mx.controls.Button and create your own
    RuntimeIconButton component ;)

  • Button Icons not show in Form 11g run time

    Button Icons not show in Form 11g
    I installed the following tools :-
    Weblogic Server 10.3.6
    SE JDK 6U35 64bit
    Oracle Portal,Forms,Report,and Discoverer Services (11.1.1.4.0)
    1. Create a "icons" folder and place all gif images in there :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\<icons>
    2. Within icons i made a jar file of all gif images :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\icons\jar -cvf frmicons.jar *.gif
    3. Copy this new jar file into :-
    C:\Oracle\Middleware\Oracle_Form1\forms\java\
    4. Edit formsweb.cfg file:
    imageBase=codebase
    archive=frmall.jar,frmicons.jar
    5. Edit Registry.dat file:
    default.icons.iconpath=/forms/java
    default.icons.iconextension=gif
    After doing above configuration i create a form and place an icon on the button.
    Set button's icon property = Yes and give name of icon without extension.
    When i run the form not display icons who configure icons.
    Please give the solution how to set icons on button.
    Thanks & regards,
    Java console message :-
    Java Plug-in 1.6.0_25
    Using JRE version 1.6.0_25-b04 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Shiv
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Forms Session ID is formsapp.8
    The proxy host is null, and the proxy port is 0.
    Native HTTP implementation is being used for the connection.
    The connection mode is HTTP.
    Forms Applet version is 11.1.2.0
    FRM-92471: unable to load image exit for iconic button item

    Duplicate post. Refer to comments in Push Button Iconic not show in Forms 11g

  • If your Send / button icons are missing in new messages in Mail, do this

    I was mystified as to why the button icons (for Send, Attach, etc) were suddenly missing from my "new message" email windows. The text descriptions were still there, so i could use the functions, but they were in tiny text, more difficult to click on. Trying to drag the icons back on from the view/customize toolbar menus (as was suggested in prior discussions i found here here) did not work.
    Then i noticed a drop-down menu called "Show" in the bottom left of the View> Customize Toolbar window (opened directly from a New Message window). It toggles whether you see Text Only, Icons and Text, or Icons Only. Mine was somehow set to Text Only. Just toggling it to Text and Icons brought my buttons back.
    I don't know how that preference got changed- i didn't do it, and no one else has access to my Mac- and it looks from Discussions like this has happened to others, and only while in New Message (a glitch?).
    This is the simple but not immediately apparent fix.

    Thanks Bernd:  I am using Adobe Acrobat 10 Pro.  I did get a response from Dave Marchant which directed me how to find the layers icon and I found the options icon as suggested in Adobe Help.  However, the options do not allow me to choose an option of either merging layers or flattening layers.  I am a novice at this and am trying to get this 1-page pdf graphic to convert to a Word document.  Is it possible that I already have a single layer pdf and that Word is doing something weird during the conversion?  I tried to convert the document yesterday and I ended up with two pages in Word.  One page had the text boxes and one had the river channels on which the text boxes had been inserted.  This is not a document I created.  We have been struggling for 5 years at various times to get this one page document into Word so that it can be used in multiple reports.  Even the graphics departments at a couple of companies have not been able to get this document resized from the original 11 x 17 format into 8.5 x 11.  I managed to get that done yesterday.  But now can't get a useable version into Word.  Suggestions?

  • OS X Lion Server display problem with menu highlighting and button icons

    I have attached  Grab capture of my screen showing the problems with the window top bars and button icons. This happened after a routine security update.
    Does anyone have an idea how to fix this?
    Thanks
    George Harrison

    I have/had the same problem. Comparible setup running Lion Server GM. The natd service fires off the InternetSharing service from the prefspane instead of the regular natd service. This is verifiable by entries in the system log as well as the lack of the natd process running. Below are my findings from research/experimentation; please understand that this is what I have done to get it working, it is DEFINITELY not best practices and I'm sure not supported by Apple. I'm just conveying what I think is happening and how I dealt with it.
    Natd - Executing the binary referenced in the launchctl job directly launches the InternetSharing service on Lion server. This does NOT act this way in SL server, where it works as expected. Replacing the Lion binaries with The SL ones results in natd working as expected: nat_start and nat_stop in /usr/libexec. In short, if you replace the Lion binaries with the ones from SL, it-s a drop-in fix. Natd isn't your only problem though...
    Dns/named - It appears that Apple has limited named to binding on the loopback adapter only by default on Lion. Adding a listen-on clause to named.conf with the appropriate bindings will fix this. I'm assuming you're running natd, named and dhcpd on the same box...
    Dhcpd - Works fine. It appears broken only because the InternetSharing service is replacing natd (why?!?) and it has a built-in dhcpd server (dumbed down 192.168.2.0 subnet). Once you fix natd, this runs as expected.
    Firewall/ipfw - Gotta have this running so that natd will do translation. Remember to open the dhcp ports to allow the clients to get leases...
    I hope this helps, I'm sticking with SL until these issues are worked out...

  • Applicationbar button icons not showing

    Hi. I using the following line to show appbar button and add icon on it but the icon is not showing up:
    <
    shell:ApplicationBarIconButtonIconUri="/Assets/wp_phoneAppBar_icons/record.png"Text="record"x:Name="StartRecording"Click="StartRecording_Click"/>
     I have a 48*48 png icon in this directory but the icon is not displaying when I run the app. What am I missing?

    Hi Clint William Theron,
    I have tested your xaml code, the xaml code is correct. In order to let the applicationbar button icons show, please try to make sure that you have set the following by right-click the record.png->choose "Properties":
    Besides, based on
    this article, the Icon images should be 48 x 48 pixels in size. The foreground graphic for the button should fit in a 26 x 26 area in the center of the image so that it does not overlap the circle.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Double-clicking a Button Icon

    Is there any way to add an event listener to a button icon?
    I've got icons on the Tabs (Button subclass) of a TabNavigator.
    I've coded the subclassed its Tabs so that a double-click
    brings up a dialog, but when you double-click the icon nothing
    happens.

    Have you set Button.doubleClickEnabled flag to true? Without
    it you won't receive the double click event.

  • Java buttons/icons

    Can some please help me. I saw a link on this site where you can download free buttons/icons with the java look & feel. Now I want id and I just cannot fine it. Does anyone hove the link.
    Peter Loo

    Thanks, Thof. This is exactly what I want. Learnt my lessons. In the future I will bookmark immediately anything that I want.
    Peter Loo

  • No button icons in GNOME MPlayer

    My MPlayer has no button Icons.
    A screenshot is worth a thousand words:
    I use gnome-mplayer 1.0.7
    Thanks for your help.
    Last edited by TheGatorade (2013-02-03 19:22:22)

    ConnorBehan wrote:Did you try downgrading libpng? The libpng upgrade was known to break some images. Maybe these are ones that slipped through the cracks.
    I upgraded my libpng yesterday, and some software got crash. The error informations are: "libpng15.so.15 was not found".
    Then I installed libpng15 from AUR and solved this problem. But I found that some icons of my gnome3 became strange or not display.
    So how can I recover my icons?
    Here is my current libpng version.
    local/libpng 1.6.2-3
    A collection of routines used to create PNG format graphics files
    local/libpng12 1.2.50-2
    A collection of routines used to create PNG format graphics files
    local/libpng15 1.5.15-2
    A collection of routines used to create PNG format graphics files (1.5
    branch)

  • Missing Actions Palette Control Button Icons

    I seem to be missing all of the control button icons in my Actions Palette. Can anyone tell me how to restore them?

    deselect Button Mode from the fly-out menu

  • Incorrect button icons after upgrade

    I upgraded to Yosemite yesterday from Mavericks.  and now I have noticed that the icons in my applications are showing incorrect images.  Below is an example of the incorrect button icons.  As you can see beside the full screen button, what would normally be a left, and right arrow buttons are actually a right arrow, and a lock.  By clicking on these they still act correct in going left/right.  Its just the icons themselves that are incorrect.
    The icons are incorrect in Safari and system preferences that I have noticed so far.  But since these are standard icons from OS X I assume it will be wrong other places as well.
    If it helps before upgrading to yosemite I had installed the obsidian menu bar for mavericks.  and forgot to uninstall it prior to upgrade.  I have since uninstalled that, and my menubar now looks correct.  I don't think that would have affected these icons, but I can't be sure.
    Any help in determining what I need to do to get the icons correct would be appreciated. 
    Thanks

    The only  suggestion I can think of is to reinstall the OS.
    Do a backup. Boot to the Recovery Volume (command - R on a restart or hold down the option/alt key during a restart and select Recovery Volume). Run Disk Utility Verify/Repair and Repair Permissions until you get no errors. Then re-install the OS.
    OS X Recovery
    OS X Recovery (2)

  • Button icons disappearing

    CP5 and we have buttons in the CPTX file.  When this publishes the button icon disappears.  The words are still there and when you select the area it does move to the appropriate slide. Any ideas?

    Hi Gary,
    try replublishing the project with following settings :
    1) Uncheck -- Advance Project Compression -- under Edit-- Preferences -- SWF Size and Quality
    2) Check-- Force republish All Slide (File Publish)
    Thanks,
    Anjaneai

  • Displaying Help Button \ Icon in Fiori Launchpad

    Hello experts,
    I have read that it is possible to display contextual help for different Fiori applications in the Fiori Launchpad header.
    Question: Where do you define the Help URL that enables the Help button\Icon in Fiori Launchpad Header area?
    thank you.
    Rob.

    Hello Masa,
    I have a quick question.
    As mentioned in the Adding and Removing Custom Items to the Options Menu - User Interface Add-On for SAP NetWeaver - SAP Library, 
    the following lines of codes needs to be added to create custom Buttons in the Fiorilaunchpad menu.
    <SCRIPT language ="JavaScript">
    var button1 = new sap.m.Button();
    var rendererExt = sap.ushell.renderers.fiori2.RendererExtensions;
    rendererExt.addOptionsActionSheetButton(button1,rendererExt.LaunchpadState.Home,rendererExt.LaunchpadState.Catalog,rendererExt.LaunchpadState.App);
    rendererExt.removeOptionsActionSheetButton(button1,rendererExt.LaunchpadState.Home,rendererExt.LaunchpadState.Catalog,rendererExt.LaunchpadState.App);
    <SCRIPT>
    Can you please tell, where these lines of code need to be added ?
    should one directly modify FioriLaunchpad.html ?
    Regards,
    Anil

  • When i press the "speaker" button/icon - i can hear ok , no one can hear me

    when i press the "speaker"button/icon - i can hear OK but no one can hear me on the speaker?

    Hello Michaelonesixthree,
    The following article provides troubleshooting steps that can help restore functionality to your iPhone's speaker.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/TS5180
    Cheers,
    Allen

  • Want to remove the disclose button icone af:treeTable.

    Hi,
    I am using jdeveloper 11.1.1.4.0
    I have af:tree table on the jspx page.
    & one parent node having 3 child nodes. I am expanding the parent node till the last child. On clicking of disclose button Icon.
    But the last child don’t have any child but still that column have the disclose button Icon. I want to remove the disclose button icone if the child is a last child of the parent node.
    Please help.
    Thanks Charu

    Hi,
    I'm using the following styling on tree-table, but still the expand icon (+) appears for the leaf-node.
    af|treeTable::leaf-icon
    content:none;
    af|treeTable::leaf-icon-style
    -tr-inhibit: background-image;
    padding-right: 0px;
    No styling applies giving any content or any property in leaf-icon & leaf-icon-style.
    Is there any thing else that we should do?
    Thanks,
    Swapna

Maybe you are looking for

  • 'Unable to load database' er

    Hi, I have the Creative MuVo V200 and it is installed with drivers .07 00 250 latest and Creative Mediasource organiser ver 3.30.2. The initial installation caused no problems and I used the Rip CD option on the MuVo V200 media Explorer on My Compter

  • STB jumps up one channel after Tivo recording starts

    Motorola QIP2500-3 with Standard Def Tivo box. Program is set to record on channel 50 at 9:00 PM.  Both the STB and the Tivo banner change to channel 50 and start recording, as expected. Almost immediately the STB changes to channel 51 while the Tivo

  • Firefox does not link to another site

    I have an image in my web page that when clicked on is supposed to take the viewer to another extrernal web site. I have set it up with Dreamweaver CS4, and it works OK with IE6, Google Chrome, but not Firefox. Can anyone please advise how I should c

  • How to unlock iphone 4s ( NOT Jailbreak, just unlock)

    Hi im going on a trip to Europe, and i want to buy a sim from europe so i can continue using mi iphone 4s, so is it ok and legal and how can i unlock my iphone 4s

  • Creating Hyperlink using InDesign CS6 Server

    Hello, Could anyone help me to automate hyperlink generation for the web related contents, I can acheive this using desktop, but not in InDesign CS6 server, since 'selection' property is not supporting by the server version. Thanks, Praveen