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

Listbox display (headers?)

$
0
0

Hello,

given the following code:

 

var Window1 = new Window('dialog'); 
Window1.preferredSize.width = 200;
Window1.preferredSize.height = 300;
Window1.alignChildren = ['fill','fill'];
Window1.graphics.backgroundColor = Window1.graphics.newBrush(Window1.graphics.BrushType.SOLID_COLOR,[0.501960784313725,0.501960784313725,0.501960784313725],1); // Properties for Window1.ListBox1
Window1.ListBox1 = Window1.add('listbox',undefined,undefined, {items:['First item','Second item','Third item'], showHeaders:true, columnTitles:['Filename']});
Window1.ListBox1.itemSize= [50,50];
Window1.ListBox1.graphics.backgroundColor = Window1.ListBox1.graphics.newBrush(Window1.ListBox1.graphics.BrushType.SOLID_COLOR,[1,0,0],1); 
Window1.show();

 

You get three very different renderings (ESTK, Photoshop, InDesign, all CC) in terms of column width, Listbox background, headers, etc.

 

ListBox.png

 

Is there a way to make PS digest the idea of Headers? We know alas it's always bad looking compared to InDesign, but here it's functionally lacking a feature.

And please, don't point me to HTML extensions >:-)

Thank you,

 

Davide Barranca

www.davidebarranca.com


Viewing all articles
Browse latest Browse all 27456

Trending Articles



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