Article View: adobe.scripting.indesign
Article #2426CS3 - UI checkbox controls...
From: cinematomico
Date: Thu, 18 Dec 2008 19:30
Date: Thu, 18 Dec 2008 19:30
23 lines
1410 bytes
1410 bytes
(CS3 - JavaScirpt)
Got an UI question.
I need to build an UI with 3 checkbox and to get their value when user click the OK button.
I've seen something interesting from a documentation file:
with(borderPanels.add()){
staticTexts.add({staticLabel:"Paragraph Alignment:"});
var myRadioButtonGroup = radiobuttonGroups.add();
with(myRadioButtonGroup){
var myLeftRadioButton = radiobuttonControls.add({staticLabel:"Left", checkedState:true});
var myCenterRadioButton = radiobuttonControls.add({staticLabel:"Center"});
var myRightRadioButton = radiobuttonControls.add({staticLabel:"Right"});
}
}
I need something like this but with checkbox instead of radiobutton.
The problem is:
- how to group all my checkboxes within a group.
- how to get an array of selected checkboxes.
Ui is really a difficult issue...
Thanks anticipately!
Technical Details
Message-ID:
<59b74e35.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,a6f82cf3535b151a,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: cinematomico@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: CS3 - UI checkbox controls... Message-ID: <59b74e35.-1@webcrossing.la2eafNXanI> Date: Thu, 18 Dec 2008 11:30:50 -0800 Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit