Greetings!
I had bought a long time ago the Lynda.com courses that David did and fond memories made me come here.
I subscribe here years later, having an issue that cost me the better part of a day, and having remembered David’s website.
It appears that Radio Buttons don’t work anymore in ID 2020/ExtendScript/ScriptUI.
Have a peek at this short video that explains it: https://youtu.be/rcgLwjzR9qc
Or try this sample code:
var dialog = new Window(“dialog”);
dialog.text = “Dialog”;
dialog.orientation = “column”;
dialog.alignChildren = [“center”,”top”];
dialog.spacing = 10;
dialog.margins = 16;
var grp = dialog.add(“group”, undefined, {name: “grp”});
grp.orientation = “row”;
grp.alignChildren = [“left”,”center”];
grp.addEventListener (“click”, clickety());
function clickety(){var error = “no one comes here”;};
var r1 = grp.add(“radiobutton”, undefined, undefined, {name: “r1”});
r1.text = “We Quit”;
var r2 = grp.add(“radiobutton”, undefined, undefined, {name: “r2”});
r2.text = “No more radio buttons for you”;
dialog.show();
I’m sorely hoping someone can help me out of this issue without having to resort to going down the CEP rabbit hole!!!
Cheers from Vancouver,
Antoine