Dialog Box: Radio Button with EditText


i'm trying make radio button group upon selecting 1 of radio buttons, value editable text box.

this have far:

 

function displaywindow() {

    var dlg = app.dialogs.add({name:"page format"});

    (dlg) {

        (dialogcolumns.add()) {

            (borderpanels.add()) {

                statictexts.add({staticlabel:"mode:"});

                var moderadios = radiobuttongroups.add();

                (moderadios) {

                    radiobuttoncontrols.add({staticlabel:"all pages", checkedstate:true});

                    radiobuttoncontrols.add({staticlabel:"current page only"});

                }

            }

            var mygrommets = enablinggroups.add({staticlabel:"grommets:"});

            (mygrommets) {

                (borderpanels.add()) {

                    statictexts.add({staticlabel:"type:"});

                    var gromtype = radiobuttongroups.add();

                    (gromtype) {

                        radiobuttoncontrols.add({staticlabel:"soft material"});

                        radiobuttoncontrols.add({staticlabel:"rigid material"});

                    }

                }

                (borderpanels.add()) {

                    statictexts.add({staticlabel:"cut hole:"});


                    customcut = measurementeditboxes.add({editunits:measurementunits.inches});


                    var cutsize = radiobuttongroups.add();

                    (cutsize) {

                        radiobuttoncontrols.add({staticlabel:"0.385\""});

                        radiobuttoncontrols.add({staticlabel:"0.55\""});

                        radiobuttoncontrols.add(/* need edittext field */);

                    }

                }

            }

        }

    }

    var myreturn = dlg.show();

    if (myreturn == true) {


    } else {

        dlg.destroy();

    }

}

 

 

 

how make radio button that's value edittext?



More discussions in InDesign Scripting


adobe

Comments