How do I script a dialog box to display information?


hi, there.

i script dialog box contains 7 rows , 2 collumns in display info such:

how do that?

 

any appreciated.

scriptui doesnt have tables, closer can using listbox. depending on version of app, lines drawn or not dont think can control it.

 

var w = new window("dialog", "test"); var lb = w.add("listbox{properties: {multiselect: false, numberofcolumns: 2, columnwidths: [60,60], columntitles: ['a', 'b'], showheaders: false}}"); (var k=1; k<8; k++){     lb.add("item", (5*k).tostring()).subitems[0].text = (11*(k+1)).tostring();     };  w.show(); 

 

you can play around creation properties.

for me, if showheaders true, columntitles displayed , columnwidths respected.

but if false, columntitles not displayed (as 1 expect) columnwidths not respected...

 

xavier



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"