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

Photoshop scripting UI image or icon

$
0
0

Hey There!

 

Im trying to getting familiar with photoshop script UI but i have some issues:

 

I guess it is pretty simple but i did not have any example so i have got no idea!

 

My goal is to use an image or icon in a window, during script.

So here is this code:

var dlg = new Window('dialog', 'Alert Box Builder',[100,100,480,245]);
dlg.btnPnl = dlg.add('panel', [15,50,365,115], '');
dlg.btnPnl.cancelBtn = dlg.btnPnl.add('button', [235,15,335,45],
'Cancel', {name:'cancel'});
dlg.show();

Just a window with a Cancel button.

 

I want to add icon and/or image to this window.

 

Any help would be appreciated!

 

ps: I looked the http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/JavaSc riptReferenceGuide.pdf   but i guess this part is missing the examples.


Viewing all articles
Browse latest Browse all 12244

Trending Articles



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