Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

IconButton - 'pressed' state showing borders

$
0
0

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


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>