Hello,
is there a way to specify (in a ScriptUI window) a property of an iconbutton such as the 'pressed' state doesn't show the button border and shadowing?
var dir = "" + File($.fileName).path + "/img/";
var icons = { normal: File(dir + "createNew_normal.png"), disable: File(dir + "createNew_normal.png"), pressed: File(dir + "createNew_pressed.png"), rollover: File(dir + "createNew_rollover.png") };
var w = new Window("dialog");
b = w.add ("iconbutton", undefined, ScriptUI.newImage (icons.normal, icons.disable, icons.pressed, icons.rollover), {style: "toolbutton"});
w.show();
With the {style: "toolbutton"} I can avoid the button borders on normal and rollover state, yet on pressed it shows (tested on PS CC and ESTK, OSX).
Thank you!
Davide Barranca
www.davidebarranca.com