Article View: adobe.scripting.indesign
Article #1328Re: CS3 JS Radio button layout
From: John_Kordas
Date: Mon, 09 Feb 2009 22:59
Date: Mon, 09 Feb 2009 22:59
35 lines
1588 bytes
1588 bytes
Thanks Peter,
Did a bit of a search on scriptUI and found a couple by Dave Sanders.
In his example he codes the dialog;
myDlg = new Window('dialog', 'Drop-down List');
myDlg.orientation = 'column';
myDlg.alignment = 'right';
//add drop-down
myDlg.DDgroup = myDlg.add('group');
myDlg.DDgroup.orientation = 'row';
The test I was working on is as follows:
function myDisplayDialog(){
var myDialog = app.dialogs.add({name:"Radio layout"});
//Add a dialog column.
with(myDialog.dialogColumns.add()){
var myRadioButtonGroup = radiobuttonGroups.add();
with(myRadioButtonGroup){
var myFirst = radiobuttonControls.add({staticLabel:"One", checkedState:true});
var mySecond = radiobuttonControls.add({staticLabel:"Two"});
}
}
//Show the dialog box.
var myResult = myDialog.show();
}
myDisplayDialog();
So is it possible to do somthing like:
with(myRadioButtonGroup.orientation = "row" ){
or should i be following the format Dave has in his example?
Technical Details
Message-ID:
<59b7d27f.1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.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: John_Kordas@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: CS3 JS Radio button layout Message-ID: <59b7d27f.1@webcrossing.la2eafNXanI> Date: Mon, 9 Feb 2009 14:59:00 -0800 References: <59b7d27f.-1@webcrossing.la2eafNXanI> Lines: 36 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit