Quantcast
Channel: Adobe Community: Message List - Photoshop Scripting
Viewing all articles
Browse latest Browse all 27456

Re: Adding options to a button?

$
0
0

You can pass in the needed Creation Properties like this:


obj = w.add('panel', [45,50,350,135], 'Title', { alignChildren : 'fill',  orientation : 'row', margins : 15 } ); 


or (probably) set them manually like this:


obj = w.add('panel', [45,50,350,135], 'Title');

obj.alignChildren = 'fill';

obj.orientation = 'row';

obj.margins = 15;


Viewing all articles
Browse latest Browse all 27456


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