var w = new Window ("palette"); var f = File ("~/Desktop/Script tests/Icons/folder.png"); var a = File ("~/Desktop/Script tests/Icons/accept.png"); var button = w.add ("iconbutton", undefined,ScriptUI.newImage ( f,undefined, a, undefined), {style:'toolbutton', toggle:true}); w.show ();
The following code doesn`t work propely in CS6.
Icon button doesn`t switch to accept.png. There is always folder.png icon.
CC and CC2014 versions works fine.
Does anyone have the same issue?