Quantcast
Channel: Adobe Community : Unanswered Discussions - Photoshop
Viewing all articles
Browse latest Browse all 74445

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 74445

Trending Articles



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