Is it possible to allow only one of the two checkboxes to be selected?
Hello everyone.
I just want to use a checkbox here.
But I also want it to be like a radiobutton, allowing only one selection.
Alternatively, use the properties of radiobutton but change the shape of the front to resemble a "box" similar to the checkbox
Another question: How to make the radiobutton indent 4mm to the right?
var pmWidth = 200;
makeDialog();
/**
* Make the dialog
* @ return void
*/
function makeDialog() {
var theDialog = app.dialogs.add({ name: "Select your need", canCancel: true });
with (theDialog) {
with (dialogColumns.add()) {
//Panel 1 Enabling
var enablePanel_A = enablingGroups.add({ staticLabel: "Doo1", checkedState: false, minWidth: pmWidth })
with (enablePanel_A) {
with (radiobuttonGroups.add()) {
opa = radiobuttonControls.add({ checkedState: false });
}
with (dialogColumns.add()) {
var w1 = staticTexts.add({ staticLabel: "Doo1-01" });
}
}
//Panel 2 Enabling
var enablePanel_B = enablingGroups.add({ staticLabel: "Doo2", checkedState: false, minWidth: pmWidth, })
with (enablePanel_B) {
with (radiobuttonGroups.add()) {
opb = radiobuttonControls.add({ checkedState: false });
}
with (dialogColumns.add()) {
var w2 = staticTexts.add({ staticLabel: "Doo2-01" });
}
}
}
}
var res = theDialog.show();
theDialog.destroy();
}

