6 Replies Latest reply: Feb 27, 2012 9:48 PM by suren_tringer RSS

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

    suren_tringer Community Member

      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"

       

      #endif

       

       

      #include "PicIcoID.h"

       

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

      {

      };

       

      ..........

      ..........

      ...........

              PicIcoRollOverIconButtonWidget

              (

                  kPicIcoRollOverIconButtonWidgetID,

                  kPicIcoPNGIconRsrcID,

                  kPicIcoPluginID,    // WidgetId, RsrcId

                  kBindNone,                                            // Frame binding

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

                  kTrue, kTrue,                                    // Visible, Enabled

                  kADBEIconSuiteButtonType,

              ),

                     

         

      .............

      ............

       

       

      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 ......