Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Listbox display (headers?)

Advocate ,
Sep 05, 2013 Sep 05, 2013

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

TOPICS
Actions and scripting
601
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guru , Sep 05, 2013 Sep 05, 2013

Add numberOfColumns: 1 to the listbox creation properties.

Translate
Adobe
Guru ,
Sep 05, 2013 Sep 05, 2013
LATEST

Add numberOfColumns: 1 to the listbox creation properties.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines