Photoshop CC 2017: ExtendScript 'iconbutton' items disappear on mouse over...

  • 1
  • Problem
  • Updated 1 year ago
  • Acknowledged
  • (Edited)
I have created some icon buttons like this:

dlgMain.btnMirror = dlgMain.grpExportPaths.add('iconbutton', undefined, iconImageMirror);    dlgMain.btnMirror.preferredSize = [22, 22]
dlgMain.btnMirror.helpTip = "Mirror Export directory to Source"
dlgMain.btnMirror.onClick = function onMirrorClick() {
    //do stuff
}
The icon disappears on mouse hover.  Does not happen in CC 2015.5.



Also, changing icons in .onClick() callback causes button not to draw.
Photo of David D.

David D.

  • 2 Posts
  • 0 Reply Likes

Posted 1 year ago

  • 1
Photo of Eric Ching

Eric Ching, Employee

  • 86 Posts
  • 47 Reply Likes
Hi,

We've received a report for this. One possible workaround is to specify the image for all states of the button like this:

dlgMain.btnMirror = dlgMain.grpExportPaths.add('iconbutton', undefined, ScriptUI.newImage(iconImageMirror, iconImageMirror, iconImageMirror, iconImageMirror));

Thanks for the report!

Eric