🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #547

Re: List Box Dialog Object VB CS4 or CS2

#547
From: jongware
Date: Fri, 13 Mar 2009 21:20
30 lines
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?
Technical Details
Message-ID: <59b83422.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
References: <59b83422.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,314dceb9eb3010f8
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: jongware@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: List Box Dialog Object VB CS4 or CS2
Message-ID: <59b83422.0@webcrossing.la2eafNXanI>
Date: Fri, 13 Mar 2009 14:20:17 -0700
References: <59b83422.-1@webcrossing.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit