Skip navigation
Currently Being Moderated

Issuse with adding an image to a widget (Indesign plugin development)

Feb 25, 2012 3:21 AM

Tags: #indesign #plug-in

Hi friends,


I have issue with adding an image to a widget .


#ifdef __ODFRC__


#include "PicIcoID.h"


     resource PNGA(kPicIcoPNGIconRsrcID) "Image.png"

     resource PNGR(kPicIcoPNGIconRollRsrcID) "ImageR.png"





#include "PicIcoID.h"


type PicIcoRollOverIconButtonWidget (kViewRsrcType) : RollOverIconButtonWidget(ClassID = kPicIcoRollOverIconButtonObserverBoss)











            kPicIcoPluginID,    // WidgetId, RsrcId

            kBindNone,                                            // Frame binding

            Frame(35,5,53,23)        // Frame

            kTrue, kTrue,                                    // Visible, Enabled









this is the code which i use . the issue is if i use default sdk images (eg:SDKinfobutton.png ) it works fine .Other than sdk images i am not able to add it to the widget .It just shows blank.


Help or Advice Please ......

  • Currently Being Moderated
    Feb 25, 2012 4:04 AM   in reply to suren_tringer

    First stepts:

    Check whether your image files are true PNG. I've had some "artists" just modify the extension.

    Examine the plugin resource folders whether the file ends up in the correct place.

    Make a binary comparison, e.g. using diff



    When PNGA and PNGR are meant for the same button, you should use the same resoure ID, different types are enough.



    Mark as:
  • Currently Being Moderated
    Feb 27, 2012 11:19 AM   in reply to suren_tringer

    Compile the original pictureicon example project with only the PNG files substituted with yours.

    If the plugin will show your custom icons, rebuild your project in steps from the example until things break.



    Mark as:
  • Currently Being Moderated
    Feb 27, 2012 11:25 AM   in reply to suren_tringer

    On the other hand, I'd fear your PNG files themselves have a problem.

    How did you create and verify them?

    What PNG options did you use? I think there are truecolor vs. color lookup ...


    I still use Adobe ImageStyler dating back to the late 90s, but I'd try Adobe FireWorks otherwise.



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points