Skip to main content
Participant
February 23, 2017

P: ExtendScript 'iconbutton' items disappear on mouse over...

  • February 23, 2017
  • 1 reply
  • 265 views

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

This topic has been closed for replies.

1 reply

Community Manager
February 23, 2017
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