How to use icon instead of bitmap for image on button in toolbar?

Hello,
I am trying to use an image that has a transparent background on one of the buttons on our custom toolbar in Adobe Acrobat.
In the past we have been using the following code with Bitmaps to display the image and it has worked perfectly:
======================================================================
AVIcon icon = LoadBitmap(gHINSTANCE, MAKEINTRESOURCE(IDB_OPTIONS_LARGE));
toolButton = AVToolButtonNew(ASAtomFromString("IMGR:Options"), icon, true, false);
====================================================================
Background info on the other objects:
V0200_DATA* dataPtr = (V0200_DATA*) windowsData;
gHINSTANCE = dataPtr->hInstance;
Resource File:
IDB__OPTIONS_LARGE BITMAP "Resources\\ImageOptions_Large.bmp"
IDI_ICON1 ICON "Resources\\Image_Icon.ico"
Unfortunately, these bitmaps are not transparent and end up showing the white background instead of the transparent one.
I have tried using Icons and PNGs as my image but I have been unable to get anything to show up. Here is the code I am using to get the AVIcon:
===================================================================
AVIcon icon = LoadImage(gHINSTANCE, MAKEINTRESOURCE(IDI_ICON1), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE);
===================================================================
However, no image appears on the toolbar. I am able to use LoadImage with the bitmap, but I am unable to make it transparent, even when using the LR_LOADTRANSPARENT flag.
If anyone can point me in the right direction I would greatly appreciate it!
Thanks,
Ryan

I got it worked with PNG file. I got transparent backgrounds in toolbar and menus.
below is my code,
HRSRC resource = FindResource(gHINSTANCE, MAKEINTRESOURCE(IDB_SAVE_21_PNG), L"PNG");
if( resource == NULL )
     //Unable to load resource
DWORD resourceSize = SizeofResource(gHINSTANCE, resource);
HGLOBAL glob = LoadResource(gHINSTANCE, resource);
LPVOID resouceArray = LockResource(glob);
ASUns8  *data = (ASUns8*)ASmalloc(resourceSize + 1);
memcpy(data, resouceArray, resourceSize);
AVIconDataRec  iconData;
iconData.dataStm  =  ASMemStmRdOpen(( char  *)data, resourceSize);
iconData.eColorFormat  =  kAVIconColor;
void * iconBundle = AVAppCreateIconBundle6(kAVIconPNG, &iconData, 1); 
AVToolButtonNew (ASAtomFromString("PFXDOC:Pfx_DocumentToolSave"),
                                        iconBundle, true, false);
Thanks & Regards
Prakash

Similar Messages

  • How to use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • How to use the same services-config for the local and remote servers.

    My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service id="amfphp-flashremoting-service"
                class="flex.messaging.services.RemotingService"
                messageTypes="flex.messaging.messages.RemotingMessage">
                <destination id="amfphp">
                    <channels>
                        <channel ref="my-amfphp"/>
                    </channels>
                    <properties>
                        <source>*</source>
                    </properties>
                </destination>
            </service>
        </services>
        <channels>
        <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
        </channels>
    </services-config>
    I think the problem  is the line
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    but I'm not sure how to use the same services-config for the local and remote servers.

    paul.williams wrote:
    You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
    The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
    Hi Paul,
    In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
    -services=path/to/services-config.xml
    IF
    services-config.xml
    have tokens in it and user have not specified additional
    -context-root
    and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
    Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
    for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
    -services=path/to/services-config.xml
    have been specified durring compilation.
    I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
    1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
    or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

  • How to use the same email address for outgoing email on two iPads?

    How to use the same email address for outgoing email on two iPads?.   My wife and I both use the same email address.  We receive the same incoming email on both iPads but are unable to send email from my wife's iPad.  She is using an iPad 2 and is usng IOS 6.0.1

    Hi Creaturekeeper,
    If you've added the account into the iPad and you are unable to send email from it, then please follow the troubleshooting in the article below.
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Take care,
    Alex H.

  • I cannot use a website I need to use, with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please advise. Also, my control panel locks up since Windows Explorer has pbms. Which is why I am using Firefox instead. Thanks for any help!

    I cannot use a website I need to use, with Firefox 5.0. So, I need to uninstall and go back to 3.5 or 3.6. Please advise. Also, my control panel locks up since Windows Explorer has pbms. Which is why I am using Firefox instead. Thanks for any help!

    ''I figured it was going to be FAFSA causing your problem.''
    Install Portable Firefox 3.6.x to your hard drive for that one website. It won't affect your current Firefox installation at all. <br />
    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • Advantages of using J1IS instead of J1IIN for excise invoice during stock t

    Hi,
    what are the advantages of using J1IS instead of J1IIN for excise invoice during stock transfer order....using delivery.
    Please clarify clearly.
    Regards,
    Dharani

    Hi all,
    Any Suggestions for my query.
    Regards,
    Dharani

  • How to use the field of 'FM for Determining Address' in report RSWUWFML2?

    Dear gurus,
    In the selection screen of report RSWUWFML2, there is a field named 'FM for Determining Address' . How to use it? Is it for sending e-mail to specific e-mail addresses?
    Regards
    David

    I will test soon. Thanks to all involved.

  • WSUS 3.2 work on Win2008 R2, how to use it deploy MS patch for Win 2012 ?

    WSUS 3.2 work on Win2008 R2, how to use it deploy MS patch for Win 2012 ?
    I have installed KB2734608, but when I search MS13-101 , no patch for Win 2012.
    Can you help me resolve this problem ?
    Thanks

    On Thu, 10 Apr 2014 06:01:48 +0000, fujitsu08 wrote:
    WSUS 3.2 work on Win2008 R2, how to use it deploy MS patch for Win 2012 ?
    WSUS has its own, dedicated forum where the WSUS experts answer questions.
    You should repost your question here:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverwsus
    Paul Adare - FIM CM MVP
    Aibohphobia: n. Fear of Palindromes

  • How to use find my iPhone app for windows pc

    How to use find my iPhone app for windows pc ... Is it possible to do..
    Or what is the closest app to do that.,,,,,

    iPhone User Guide (For iOS 5.0 Software)
    iCloud: Find My iPhone
    iCloud: Find My iPhone overview
    iCloud: Set up Find My iPhone

  • How to use 'DELETE ADJACENT DUPLICATES FROM' for deleting as some field

    How to use 'DELETE ADJACENT DUPLICATES FROM' for deleting as some field
    eg:
    I have a inner table ,it contains a field named ast_guid,now,I search ten records,contains some duplicate records in the field of ast_guid.but I can not delete the duplicate records as ast_guid.

    If the type of  inner table is standard table,  you should sort the inner table  by the fields before user 'DELETE ADJACENT DUPLICATES  ', and use COMPARING addtion.
    Edited by: Justin on Jun 28, 2009 9:48 AM

  • Can we use EDID4 instead of EDIDD for generating IDOC

    Hi Abap-Experts,
                           My question is can we use EDID4 instead of EDIDD for generating IDOC. I have declared internal table for idoc data using EDIDD...but can i use instead EDID4 for the same as well as in FM('MASTER_IDOC_DISTRIBUTE'). I have tried to use but it was giving me runtime error
       DATA : ls_edidd  TYPE edidd .
      DATA : it_edidd TYPE TABLE OF edidd .
    LOOP AT it_cust INTO wa_cust .
        lv_segnum = lv_segnum + 1 .
        ls_edidd-segnum = lv_segnum .
        ls_edidd-segnam = 'Z1ZZ_CUST' .
        ls_edidd-hlevel = '1' .
        ls_edidd-sdata = wa_cust .
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          master_idoc_control                  = ls_edidc
      OBJ_TYPE                             = ''
      CHNUM                                = ''
        TABLES
          communication_idoc_control           = it_edidc
          master_idoc_data                     = it_edidd
    Thanks in advance,

    Hi Alexander,
             I am not getting any error when i try EDIDD for generating IDOC..but if i try EDID4........it does give me error message.
               so please tell me what is the solution for this.

  • [svn:fx-trunk] 7687: Forgot to have WindowedSystemManager use instance instead of static for mixins .

    Revision: 7687
    Author:   [email protected]
    Date:     2009-06-09 13:41:18 -0700 (Tue, 09 Jun 2009)
    Log Message:
    Forgot to have WindowedSystemManager use instance instead of static for mixins.  (regular SystemManager was changed to use instance instead of static before checkin)
    Also fix porting error in MarshallPlan.as
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-21461
    Reviewer: darrell
    tests: checkintests
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21461
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/WindowedSystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/systemClasses/MarshallPlan.a s

    Hi Chris,
    I tried removing and adding back the dialpeer 101 and adding .T to 501 but still the same result. Please help.
    Please see the following:
    SEC-HO-VGATEWAY01#show dial-peer voice summ        
    dial-peer hunt 1
                 AD                                    PRE PASS                OUT
    TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT    KEEPALIVE
    501    voip  up   up                                0  syst                    
    1001   voip  up   up             5...               1  syst ipv4:10.13.14.21   
    1002   voip  up   up             1...$              1  syst ipv4:10.13.14.21   
    103    voip  up   up             911$               1  syst dns:toronto2.voip.ms
    102    voip  up   up             1[2-9]..[2-9]...-  1  syst dns:toronto2.voip.ms
                                     ...$
    101    voip  up   up             [2-9]..[2-9]....-  1  syst dns:toronto2.voip.ms
                                     ..$
    SEC-HO-VGATEWAY01#show run | sec dial-peer voice 501
    dial-peer voice 501 voip
    incoming called-number .T
    voice-class sip bind control source-interface Loopback0
    voice-class sip bind media source-interface Loopback0
    dtmf-relay rtp-nte
    codec g711ulaw
    no vad

  • SMP3 - AppDevelopment (Agentry):how to use GCM (Google cloud Messaging) for Agentry Application.

    Hi, I have a question on SMP3 and AppDevelopment (Agentry): how to use GCM (Google cloud Messaging) for Agentry Application for PUSH notification

    Pratik,
    Let me walk you through the flow with the assumption that the user is on an Android device and "connected" to the Agentry server.
    An emergency workorder is created in SAP and assigned to the technician. 
    The SAP backend system will notify the Agentry server via an XML message that there is a workorder to send.
    Agentry will get the details and if the user is connected attempt to send the workorder to the device via the Push mechanism
    If the push fails to reach the Agentry client, the Agentry server will send a GCM message to the user
    When the user returns to the Agentry client, the normal push processing / fetch will occur to receive the workorder from the server assuming the push retrys are in effect.
    So, essentially you should not have to do anything to get the GCM to work as a secondary notification mechanism.
    If you are looking to do something else with GCM that would be outside of Agentry.
    --Bill

  • How do I resolve the "insufficient data for image" error for Adobe reader 11.0.04?

    How do I resolve the "insufficient data for image" error for Adobe reader 11.0.04?

    Hi Johnkel1524,
    Please refer : http://helpx.adobe.com/acrobat/kb/insufficient-data-image.html
    Also try updating to 11.0.5 and check.

  • How to use icons (database, database backup, save, delete etc.) in Oracle f

    Hi Everyone,
    I am using Oracle forms 5.
    I want to use iconic buttons in Oracle forms 5 for database, database backup, save, delete etc.
    Example:
    Like Oracle Enterprise Manager, a GUI tool, we can see the different icons for different items (icon for database backup, database etc).
    How should I get these icons? How should I attach these icons to the buttons/Image item in Oracle Forms ?
    Should I give the file path of these icons in property palette of an item in Oracle forms?
    If yes, then which property of item, will I use in order to attach the icons?
    Please send the solution.
    If some one can also send the related icons, I will thankful to him.
    Regards
    Martin

    Hi FRANKS,
    Thanks for your useful information.
    WIth regards to attach icons to button/text item in Oracle forms,I am still facing problem.
    As you said, I created the parameter/variable UI_ICONS in Forms Home and gave the value pointing to the directory holding the .ico files.
    And then set the iconic property of the button and the icon's name without its extension.
    But it didn't work.Could ypu please let me know what is going wrong?
    I am thankful to you.
    Martin

Maybe you are looking for

  • How do I set up file sharing between iMAC and MacBook Pro?

    I am unable to use "file sharing".  When trying to connect as a "registered user" it asks for my server password.  What is that?  I have tried every password I think it could be.  I also can not connect as "using an Apple ID"

  • Error while Uploading Interactive Adobe Form

    Hi, I have been given a template Interactive Adobe form by Adobe which i have to upload in SAP. I created a test interface and form then i am trying to import the template into the layout. I get following error - " Can not Load: "http://dldtc00.wdf.s

  • Issue while executing the discovery command from target nodes

    Hi Experts. I had to create cluster two node using openfile, after creation of successful lun and associated partition from all the nodes i have changed the ip address of openfiler. After changing the IP on open filer. A) openfile version:- [root@san

  • Double Buffering in Java Swing

    Hi sir, Here i want to know about what is exactly double buffering? I have learned that double buffering is automatic in swing components. But i have some problem with my JButtons it is FLICKERING a bit.Where u need to scroll the mouse to see it.Can

  • Will installing a shuffle disable the use of a nano?

    I have an iPod nano on my computer, and my dad just got an iPod shuffle for his birthday, but my question is since it is telling me to download new software for the shuffle to work, will that affect the nano working off the same computer?