Import Icon on Custom Tool Button

Hello,
I have a script to add an icon to a custom tool button.
When the script is run from the console in Adobe Professional 9, the tool button with the icon is added to the toolbar.
The tool button needs to be installed on user's computers with Adobe Reader X.
The script was placed as folder level javascript on a user's computer as well as the jpg file for the icon.
When Adobe Reader X was opened the following error was thrown:
TypeError: this.importIcon is not a function
1:Folder-Level:App:Button.js
Can any one please provide assistance on how to get the tool button with the icon to show in Adobe Reader X?
This is the folder level javascript:
this.importIcon("myIcon", "/C/temp/myIcon.jpg", 0);
var oIcon = util.iconStreamFromIcon(this.getIcon("myIcon"));
app.addToolButton({
cName: "myButton",
oIcon: oIcon,
cExec: "console.println('My Button!');",
nPos: 0
Thank you very much.

That code can't work in a folder-level JavaScript since importIcon is a method of a document.
You should instead include the button icon image data in the script. If you want to see how to do it, you can get the following product: http://www.windjack.com/product/acrobuttons/

Similar Messages

  • Custom Tool Buttons

    Hello --
    I'm running PSE 12 on Mac. I do a lot of photo cropping in 4 standard crops: 8x10, 10x8, 4x6 and 6x4. At the moment, go through this lengthy routine each time I need to crop:
    1. click on the crop tool
    2. open the tool options (I don't like to use the auto-open option for every tool, so that is shut off)
    3. select the fixed ratio from the pull down menu (either 8 x 10 or 4x6)
    4. Then choose the orientation (i.e., do I actually want 8x10 or do I need 10x8 for this given image)
    Instead of going through these pain-in-the-neck steps for every image, I'd like to have 4 buttons on my tool panel -- 1 for each different crop ratio/orientation.
    Is there a way to do something like this in PSE 12? If so, could someone walk me through the setup?
    Thanks!

    I see a similar question from 2012 but is there a way now 2 years later? Or can you create a custon button that essentially does the same thing without the action wizard? Sorry if this question has been asked a bunch of times.

  • Tool Button Not Working in Adobe Reader 9

    Hello,
    I have a custom tool button - folder level script (with a trusted function) to digitally sign a drawing template.
    The tool button works in Reader 8 and Reader X, but is not working in Reader 9.
    The error message is shown "Not Allowed Error: Security settings prevent access to this property or method".
    Can any one please advise why this would not work in Reader 9 when the tool buttons work in other versions of Adobe Reader?
    Thank you.

    Adobe changes JS with every major release, check the Acrobat JS API Reference to see what has changed with regard to your code.
    Without seeing your code, there is no way tell what is going on. Also check the preferences to see if there is an option that needs to be checked to allow your script to work.
    Since Reader X works and it is free, why not upgrade?

  • CS6 - Custom Cursor & Button's icon

    I am trying to display a custom cursor when mouse is moving on a button which has icon.
    But the button's icon is always in front of my cursor image.
    How to make my cursor image on top?
    Belows is my code. Please tell me what's wrong.
    Thank you!
    <mx:Application... creationComplete = "init()>
    private var MyCursor:Shape = new Shape();
    private function init():void{
        // draw custom cursor
        MyCursor.graphics.clear();
        MyCursor.graphics.lineStyle(2, 0xFF0000, 1,true);
        MyCursor.graphics.drawCircle(0,0,6);
        MyCursor.graphics.moveTo(-3,-3);
        MyCursor.graphics.lineTo(4,4);
        MyCursor.visible = false;
        // add to the layer
        CursorLayer.addChild(MyCursor);
    private function ShowCustomCursor(e: MouseEvent):void
        Mouse.hide();
        MyCursor.x = e.stageX;
        MyCursor.y = e.stageY;
        MyCursor.visible = true;
    private funtion HideCustomCursor(e:MouseEvent):void
        Mouse.show();
        MyCursor.visible = false;
    <mx:UIComponent id = "CursorLayer" x ="0' y="0" width ="1000" height = "1000" blendMode="layer">
    <mx:Button id="btnTest" x="50" y="5" width="28" height="20" buttonMode="true"
    icon="@Embed(source='assets/btnTest.png')"
    mouseFocusEnabled="true"
    mouseMove="ShowCustomCursor(event)"
    mouseOut="HideCustomCursor(event)"
    tabEnabled="false"
    useHandCursor="true"/>

    that's because your cursor is sporadically moving over your interactive objects interfering with their mouseevents.
    to remedy, disable the mouseEnabled property of your cursor.

  • Issue with Icons display in PUSH BUTTONS in forms 11g

    Hello,
    This is regarding an issue with the icons background for the push buttons in the forms 11g. When we enable the icons for the buttons (.gif) they are visible on the
    top left corner of the buttons and not in the centre. In one of the forums it was written like this is a common problem in Forms 11g. Is there any way by which we can
    centralize this icons on the Forms buttons. Also I have heard that image editing tools can be used to centralize the icons. I tried with one of the tools but it seems
    like it is not working.
    Can somebody suggest a workaround for this?
    Thanks in Advance
    Ram

    I will assume you are attempting to use the images included in the Forms applet jar. These images are purposely structured so that the subject is off-centered. You should not see that same behavior if you use your own images or edit the ones built-in to Forms. However, keep in mind that the images packaged in the Forms applet jar are intended to be used in a menu toolbar and not custom buttons.
    For more information, refer to MyOracleSupport note 1391073.1 where I explain this in detail.
    Michael Ferrante
    Senior Principal Support Engineer
    Forms Global Technical Lead
    Oracle Corporation
    .

  • Custom TOC button in Captivate 4?

    Hi all,
    I'm using Captivate 4 with imported PowerPoints. I'd like to use the Captivate skin's built-in TOC without using the playbar (and its available TOC button). However, that leaves me with only the teensy little grey TOC tab/slider thingy in the upper left corner to open/close the TOC, which doesn't seem to be large or distinct enough to get my users' attention.
    I'd like to add a larger custom TOC button that opens and closes the TOC overlay from the slide footer, but can't find anything to point my button at so as to make that happen. Any suggestions?
    If this has been addressed already, apologies, I didn't find it.

    Hello and welcome to the forum,
    In Captivate 5 you can change this icon. For CP4 I believe someone created a widget, am looking for it later on and will be back when I find it.
    Lilybiri

  • Google's "Search Tools" button missing in Firefox on PC (works in Chrome)

    When searching with Google using Firefox, I cannot see the "Search Tools" button displayed where it normally is, below the search field, after "Web", "Images", "Video" etc. There is only a limited date range on the left hand side, meaning I cannot filter search results properly. If I try an Image search, my options for image size are limted to "Large", "Medium" and "Icon" (which is pretty much useless if I want to specify images above/below/exactly a particular size etc.)
    Using Chrome, however, the "Search Tools" button still appears and thus I am able to access the full range of search options.
    https://support.mozilla.org/en-US/questions/945303
    https://support.mozilla.org/en-US/questions/1012079
    ^As per other support threads out there, the issue seems to be occuring with other users, BUT these threads are all related to Android/mobile, NOT PC.
    Obviously, the easiest workaround is to just use Chrome instead of Firefox. But I don't want to use Chrome because Google is Evil. So... any ideas?

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Why is the 'Choose icon...' button in the Options tab of the field property dialog box not enabled?

    I am using Adobe Acrobat Professional XI running on Windows 8.
    This “feature” has been bugging me for some time now. I remember it happening when I used Acrobat 9 Professional (Windows XP) and it is still happening in Acrobat XI Professional. I think I figured out a situation when I can reproduce this “feature” conistently and I hope someone fixes this.
    Try the following and see what happens:
    1. Acrobat Professional is not open.
    2. Launch Word and start editing a document (or some other authoring tool that can generete PDF document).
    3. After editing the document, generate a PDF version of the document.
    4. Launch Acrobat Professional and edit the PDF document generated in 3.
    5. Add a button.
    6. View the button's properties.
    7. Change the Fill Color property in the Appearance tab to none.
    8. Change the Layout in the Options tab to Icon only.
    Now here is what bugs be. Shouldn’t the 'Choose Icon ...' button be enabled? It is not enabled after step 8. It is possible that 'Choose Icon ...' button is enabled for some of you. I this case, it would be nice if at least one of you who experience the same bug say so in this thread so that Adobe doesn't think I am sending them on a wild goose chase.
    I can enable it by selecting a different tab and then returning to the Options tab. A similar thing happens when reverting back from 'Icon only' to 'Label only' but I am not sure how to reconstruct a scenario for this one.
    Here is the dialog box for one instance when I noticed the bug.
    Regards,
    John

    You're right, it has been that way for a long time. I've never bothered reporting it as a bug since it's simple enough to deal with, but reporting it would be a reasonable thing to do.

  • Found 0 results for My browser is missing important items, the whole tool bar...., drop down menu to print, copy, work off line, file, save, book mark, history. I just installed latest foxfire on windows xp. Found some instructions but they called for usi

    Found 0 results for My browser is missing important items, the whole tool bar...., drop down menu to print, copy, work off line, file, save, book mark, history. I just installed latest foxfire on windows xp. Found some instructions but they called for using keys my computer doesn't have ( key in OSX There is no file, edit , history, help, tools, navigation, all the things your directions say to use. Also I always get hung up and the message a scrip is running. I don't know what thises scrips are but I sure don't need them.
    == This happened ==
    Every time Firefox opened
    == I just noticed it. It probably happened when I upgraded foxfire.

    <u>'''Can't see the Menu Bar'''</u> (File, Edit, View, History, Bookmarks, Tools, Help)?
    Turning the Menu Bar on and off is a new feature in version 3.6.
    ''(Linux & OSX see: [[Menu bar is missing]] )''
    <u>''Windows'' Method 1.</u> '''''Hold down''''' the key and press the following letters in this exact order: V T M
    <u>''Windows'' Method 2.</u> Press and release the key. The Menu Bar will be displayed; then choose ~~red:V~~iew > ~~red:T~~oolbars and click on ~~red:M~~enu Bar.
    The Menu Bar should now be displayed permanently, unless you turn it off again using View > Toolbars. Check mark = displayed, NO check mark = not displayed.
    See: http://support.mozilla.com/en-US/kb/Menu+bar+is+missing
    <u>'''Navigation Toolbar, Bookmarks Toolbar and other Toolbars'''</u> under View > Toolbars. Clicking on one of them will place a check mark (display) or remove the check mark (not displayed).
    <u>'''To display the Status Bar'''</u>, View, then click Status bar to place a check mark (display) or remove the check mark (not displayed).
    <u>'''Full Screen mode'''</u>
    http://kb.mozillazine.org/Netbooks#Full_screen
    Also see:
    ''' [[Back and forward or other toolbar buttons are missing]]'''
    '''[[Navigation Toolbar items]]'''

  • Custom Push button on CAT2 t-code

    Hi Experts,
    There is a requirement in my project, where we need to add a custom push button in the application tool bar of CAT2 transaction.(This push button must be placed right next to the additional fields push button). When this push button is pressed, a pop up must be displayed with some details on fields.
    There are three screen exits available for this screen.They are as follows:
    CATS0005
    CATS0007
    CATS0012
    Is it possible to add a custom push button in this standard application tool bar? If so, can you please help me in identifying the appropriate screen exit that can be used to achieve this requirement.
    Also, the current system is in 4.6c version and the above requirement is to be implemented in 4.6c. In near future, there will be an upgrade to ECC 6.0 version. So it will be helpful if you can give me suggestion that is applicable in 4.6c and ECC 6.0 verison.
    Thanks a lot in advance,
    Regards,
    Deepa

    Dear Sreekanth,
    In SAPLMEGUI program you suggested me that do SHD0 and add GUIXT to add new button.
    What is SHD0 and GUIXT ?
    How can i do this ? please explain me step by step ?
    Regards,
    K.Chinna

  • MS CRM 2015 Adding Custom RIbbon button in dashboard and Changing Colors

    Hi,
    I am Looking for customization in MS Dynamics CRM 2015 and want to Add Custom Ribbon button in dashboard and Changing Colors of that ribbon using customization.xml i am new to crm 2015 and only know how to import export solutions.
    Regards
    Irfan

    Hello Irfan,
    For adding a custom button please refer this blog
    https://community.dynamics.com/crm/b/aeonnexuscrm/archive/2014/10/21/ms-crm-2013-adding-custom-ribbon-button-in-dashboard.aspx
    And for changing colors in Chart
    https://crmchartguy.wordpress.com/2012/08/23/palette-custom-colors-in-charts/
    Hope this helps!
    Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/

  • Where has the "recordings" options gone in imovie for the iphone? It used to be listed under the audio tab in the import icon.

    Where has the "recordings" options gone in imovie for the iphone? It used to be listed under the audio tab in the import icon. At one point you could add audio to a project from the Voice Memo app.

    there is NO "reload" button under "customize"!
    how do I get my toolbars set back to pre-firefox4?

  • Missing tool buttons on Property Inspectator

    I'm using Dreamweaver CC 2014.1 and having trouble with missing tool buttons within the property inspector. These icons, such as the Italic button, disappeared. I know, crazy right?! I feel i must have pressed something to make them disappear. Can anyone out there tell me how to get these button icons back on my property inspector. Please!

    It's definitely not the HTML button. I wish it was that simple. It is also not because it's a different version because I looked on screen examples of CC 2014.1 and it has these buttons for sure. Thanks for trying though.

  • Keeping session using custom save button in managed bean

    Greetings,
    I'm building a application based on BC + ADF(JSF).
    All around the app. I need two buttons, one for committing and actualizing the UI data, and other to return to the previous page.
    Instead of customizing those buttons every time they occurs, I've haded a managed bean to do the work. This managed bean as "request" scope.
    The process of editing a form, requires me to have one form to only view the data and other to edit the data.
    The issue is: when saving a form, it should return ("back" action) to his precedence, keeping the session state.
    That is: If I'm editing "process 2" when i commit it should go to "process 2" in read only mode.
    This works fine if i use "hardcoded buttons", but when i use the managed bean to handle those buttons action, when committing, it goes to the first on the list. It doesen't keep the session state.
    How can i keep the state ?
    Thanks
    here it is the managed bean:
    package fc.view.backing;
    import fc.model.FirstCareAppModuleImpl;
    import javax.faces.context.FacesContext;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.view.faces.component.core.nav.CoreCommandButton;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    import oracle.jbo.ViewObject;
    public class fcLib {
    private BindingContainer bindings;
    private CoreCommandButton commandButton_save;
    private CoreCommandButton commandButton_backOnePage;
    private CoreCommandButton commandButton_backHome;
    * Get and set bindings
    public BindingContainer getBindings() {
    return this.bindings;
    public void setBindings(BindingContainer bindings) {
    this.bindings = bindings;
    * Getters ans setters for "save" and "back" buttons
    public void setCommandButton_save(CoreCommandButton commandButton_save) {
    this.commandButton_save = commandButton_save;
    public CoreCommandButton getCommandButton_save() {
    return commandButton_save;
    public void setCommandButton_backOnePage(CoreCommandButton btn) {
    this.commandButton_backOnePage = btn;
    public CoreCommandButton getCommandButton_backOnePage() {
    return commandButton_backOnePage;
    public void setCommandButton_backHome(CoreCommandButton btn) {
    this.commandButton_backHome = btn;
    public CoreCommandButton getCommandButton_backHome() {
    return commandButton_backHome;
    * Back actions for back buttons
    public String commandButton_backOnePage_action() {
    return "back";
    public String commandButton_backHome_action() {
    return "home";
    * Save button action - Used in al pages that do save (commit) data
    public String commandButton_save_action() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("Commit");
    OperationBinding operationBinding2 = bindings.getOperationBinding("Execute");
    operationBinding.execute();
    operationBinding2.execute();
    // It should be a error page
    if (!operationBinding.getErrors().isEmpty()) {
    return null;
    // Refresh main view object
    DCBindingContainer bc = (DCBindingContainer)FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get("bindings");
    FirstCareAppModuleImpl fc = (FirstCareAppModuleImpl)bc.findDataControl("FirstCareAppModuleDataControl").getDataProvider();
    ViewObject vo_SitSocProf = fc.findViewObject("EpisodiosMain");
    vo_SitSocProf.executeQuery();
    System.out.println(" All done. Ciao ");
    return "back";
    }

    Hi
    I re-execute the query only to refresh the AM VO data.
    I'm using AM EO to access DB Views, that use IOF triggers to update/insert/delete into the DB.
    Using the application, when updating data, changes wont reflect in the UI if I don't refresh the "master" VO, that is "EpisodiosMain". I'm doing a commit and a execute to a "detail" VO.
    "If you need to execute the query and set it back to the last row you worked with, get the row key before executing the query so you can set the current row back to this rowkey"
    Could you please throw a example on how to do this ?
    "Reaching through to the AM to execute the VO isn't best practices. You should grap the associated iterator in teh binding instead and perform the execute operation. Note that usig ADF binding there are only rare situations in which you need to access teh business service directly as you do. "
    Again, could you please post an example of how to do this, or introduce me to some documentation.
    Thanks
    Message was edited by:
    Buondi

  • Iconic images on multirow buttons

    Hi,
    I am trying to get different iconic images displayed on a button in a multirow block. Is there any easy way to do it. Running Forms 10g
    example
    I have a block based on customer orders which displays 10 rows
    I want to display an iconic image on a button in the multirow that shows a different image depending on the status of the order e.g. ordered, dispatched, cancelled etc etc
    so row 1 would show image1, row2 image 2, row3 image 1 and so on, each row could be a different image or the same image
    As I scroll up and down records refreshing the data displayed in the multi row I would want the images to change as well
    Tried set_item_property (icon_filename) but this sets all instances of the button to the same image, set_item_instance_property cannot set the Icon Filename.
    Can this be done in javabean?, can you reference the individual row instance's of the javabean.
    Any possible solutions?
    Thanks

    I have also tried to "simulate" this using an image-item, but the image doesn't populate. I put the code for read_image_file in post-query trigger thinking this would be most appropriate.
    Even when I put it in a When-New-Record-Instance as I scroll up and down the records in the block the images clear and don't refresh as expected

Maybe you are looking for

  • Extract data to flat file

    extract data when button pressed in forms 9i to a flat file

  • CODE Group, CODE Group Profile

    Hi Experts What is CODE Group and CODE Group Profile Whats the use of CODE Group and CODE Group Profile How it will works I will be very happy to reward points. Thanks and Regards Kumar Edited by: Kumar on Sep 24, 2008 8:48 AM

  • EL fails in my JSP-files

    Hello, today i installed JSTL 1.1 using Tomcat 5.0.25 and J2SDK1.4.2_03. I noticed, that the EL-expressions are only evaluated, if the jsp-files are located in the root-directory of my web-application. My usual location for jsp-files is /WEB-INF/jsp

  • Does Logic Express allow you to set a split point in the Score Editior?

    http://www.music.sc.edu/ea/Jazz/transcriptions.html

  • USB Hardrive NTFS file system

    Ive just changed from windows to mac. I am now having a bit of a problem. With my old windows computer i used a 180gb usb hardrive on NTFS file system. I can read the files on my new mac but i cant put anything on there. So i now realise i have to co