Skip to main content
Participant
Feb 23, 2017 1:14 AM UTC
Not Prioritized

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

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Participating Frequently
Feb 23, 2017 1:47 PM UTC
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
Translate