Article View: adobe.scripting.indesign
Article #1339Re: CS3 JS Radio button layout
From: Peter Kahrel
Date: Tue, 10 Feb 2009 05:37
Date: Tue, 10 Feb 2009 05:37
23 lines
1294 bytes
1294 bytes
John,
Dave's example is scriptUI, yours uses InDesign's dialog system. The latter doesn't let you organise buttons in rows, you have to use scriptUI. Here's your example in scriptUI:
function myDisplayDialog()
{
var myDialog = new Window ('dialog', "Radio layout");
var rg = myDialog.add ('group')
var rb1 = rg.add ('radiobutton', undefined, 'Button 1');
rb1.value = true;
var rb2 = rg.add ('radiobutton', undefined, 'Button 2');
myResult = myDialog.show();
}
myDisplayDialog();
scripUI's documentation is in the ESTK: Help > SDK > JavaScript's Toolguide CS3. scriptUI's object model is at Help > scriptUI classes.
Peter
Technical Details
Message-ID:
<59b7d27f.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7d27f.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,25a7711af8d8f4ea X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Peter Kahrel" <kahrel@kahrel.plus.com> Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: CS3 JS Radio button layout Message-ID: <59b7d27f.2@webcrossing.la2eafNXanI> Date: Mon, 9 Feb 2009 21:37:49 -0800 References: <59b7d27f.-1@webcrossing.la2eafNXanI> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit