Highlighted

UI dialog problem

Contributor ,
Sep 18, 2018

Copy link to clipboard

Copied

Hi experts,

In Adobe CC version of InDesign, the Java Script UI has a problem, if active the ui, it will cause script jump out InDesign (if some folders are open) after run the script.

    var
        w = new Window("dialog","UI_Stub", undefined, {closeButton: false}),
        p = w.add("panel"),
            mLine = p.add("group"),
                mStat1 = mLine.add("statictext", undefined, "Leave left: "),
                mEdit1 = mLine.add("edittext", undefined, ""),
                mStat2 = mLine.add("statictext", undefined, " character(s)"),
        mB = w.add("group");
        mB.add ('button', undefined, "OK", {name: "OK"}); 
        mB.add ('button', undefined, "Cancel", {name: "Cancel"});
        mLine.alignChildren = "left";
        mEdit1.characters = 3;
        mB.spacing = 50;
        mEdit1.active = true;
        if (w.show() == 1);

I active the mEdit1

Thanks

John

dailog.gif

Topics

Scripting

Views

206

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

UI dialog problem

Contributor ,
Sep 18, 2018

Copy link to clipboard

Copied

Hi experts,

In Adobe CC version of InDesign, the Java Script UI has a problem, if active the ui, it will cause script jump out InDesign (if some folders are open) after run the script.

    var
        w = new Window("dialog","UI_Stub", undefined, {closeButton: false}),
        p = w.add("panel"),
            mLine = p.add("group"),
                mStat1 = mLine.add("statictext", undefined, "Leave left: "),
                mEdit1 = mLine.add("edittext", undefined, ""),
                mStat2 = mLine.add("statictext", undefined, " character(s)"),
        mB = w.add("group");
        mB.add ('button', undefined, "OK", {name: "OK"}); 
        mB.add ('button', undefined, "Cancel", {name: "Cancel"});
        mLine.alignChildren = "left";
        mEdit1.characters = 3;
        mB.spacing = 50;
        mEdit1.active = true;
        if (w.show() == 1);

I active the mEdit1

Thanks

John

dailog.gif

Topics

Scripting

Views

207

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Sep 18, 2018

Copy link to clipboard

Copied

It's a known problem and has been reported. Please add your voice here:

Adobe InDesign: Bugs: Hot (1157 ideas) – Adobe InDesign Feedback

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Contributor ,
Sep 18, 2018

Copy link to clipboard

Copied

Hi Peter

Any solution to fix it?

John

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Adobe Community Professional ,
Sep 18, 2018

Copy link to clipboard

Copied

Well, I would have given it to you if I knew it, wouldn't I?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Contributor ,
Sep 18, 2018

Copy link to clipboard

Copied

thank you Peter.

John

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...