Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by David_Pepper
Fri, 13 Mar 2009 18:02
List Box Dialog Object VB CS4 or CS2
Author: David_Pepper
Date: Fri, 13 Mar 2009 18:02
Date: Fri, 13 Mar 2009 18:02
1 lines
801 bytes
801 bytes
It appears that the InDesign Dialog object doesn't allow you to place list boxes. Does anyone know a work around for this. I need to match up the items for two lists that can contain 40 - 50 items each. Any thoughts?
Re: List Box Dialog Object VB CS4 or CS2
Author: jongware
Date: Fri, 13 Mar 2009 21:20
Date: Fri, 13 Mar 2009 21:20
30 lines
1368 bytes
1368 bytes
They have something called a drop down list:
var myLabels = new Array;
myLabels.push("Hello");
myLabels.push("World!");
var myDialog = app.dialogs.add ({name:"My First Dialog",canCancel:true});
with (myDialog)
{
with (dialogColumns.add())
{
with (dialogRows.add())
{
staticTexts.add ({staticLabel:"My List"});
dropdowns.add ({stringList:aStringArray, selectedIndex:0});
}
}
}
I guess 'real' Windows Listboxes are not supported -- can't find them in the newer (CS3) ScriptUI as well.
..match up the items for two lists..
How were you planning to 'match up' two listboxes? Perhaps you can place two dropdown lists side by side?
Re: List Box Dialog Object VB CS4 or CS2
Author: David_Pepper
Date: Fri, 13 Mar 2009 21:56
Date: Fri, 13 Mar 2009 21:56
1 lines
915 bytes
915 bytes
I thought about using drop-downs, but there are so many items in each list that it would look too busy. With list boxes, you just order the items as desired in each column and then reference the item index numbers (e.g. Item 1 in Column 1 is assciated with item 1 of Column two....)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads