1 Reply Latest reply on Dec 10, 2014 4:59 AM by Cloud Strife Pom Cloud Strife Pom

    problem with AddItemToThirdPartyPopupMenu2 function

    Cloud Strife Pom Cloud Strife Pom

      System.bool AddItemToThirdPartyPopupMenu2(

         System.int RegisterId,

         System.int DocType,

         System.string Item,

         System.int Identifier,

         System.string CallbackFunction,

         System.string EnableFunction,

         System.string CustomName,

         System.string HintString,

         System.string BitmapFileName,

         System.int MenuItemTypeOption

      )

      when i call this function the picture of icon not show up

       

      in argument "System.string BitmapFileName
      i try both png and bmp path for the image to icon

      but it's not showing
      any specific dimensions or extensions to make it works?

       

      i try to read in API help but it's use image from embedded resources, i tried that one but still not working

        • Re: problem with AddItemToThirdPartyPopupMenu2 function
          Cloud Strife Pom Cloud Strife Pom

          some part of my code [C#]

           

          string pathIconRebuild = setupPath + "Rebuild.png";

          regisIDpoint = swApp.RegisterThirdPartyPopupMenu();

          check = swApp.AddItemToThirdPartyPopupMenu2(regisIDpoint, (int)swDocumentTypes_e.swDocASSEMBLY, "Tools", addInID, "", "", "", "", "", (int)swMenuItemType_e.swMenuItemType_Break);

          check = swApp.AddItemToThirdPartyPopupMenu2(regisIDpoint, (int)swDocumentTypes_e.swDocASSEMBLY, "Rebuild", addInID, "CallPopRebuild", "EnbPopRebuild", "", "call rebuild", pathIconRebuild, (int)swMenuItemType_e.swMenuItemType_Default);

           

          when the menu popup there is no picture  "Rebuild.png" in it (path to file is correct)

           

          but
          AddMenuPopupIcon2 work perfectly icon is showing