I'm adding a button created by a custom menu item. When adding the icon, I get an "internal error"... the button gets added but the icon isn't attached. Any suggestions for what might cause this problem?
var i = this.addField("b"+imgCount, "button", page, tRect);
i.buttonPosition = position.iconOnly;
var retn = i.buttonImportIcon("/C/PDF/img1.pdf",0);
if (retn != 0) app.alert("Icon not imported");