Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

vertical scrollbar does not work in a nested dialog

Community Beginner ,
Aug 09, 2014 Aug 09, 2014

In Adobe Illustrator CC 2014 Win 7 and Mac OS X 10.8

function dropdown2(win_location, win_width, h50, list2) {

    var ww = new Window ("dialog");

    var g = ww.add ("group");

    var panel = g.add("panel", [0, 0, 300, 200]);

    var sbar = g.add ("scrollbar", [0, 0, 20, 200]);

    ww.show();

}

var w = new Window ("dialog");

w.add("button", undefined, "asdads").onClick = function () {

  dropdown2([200, 200], 200, 50, ["asdaf", "asdaf", "asdaf", "asdaf" ]); };

w.show();

TOPICS
Scripting
984
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Sep 04, 2014 Sep 04, 2014

No idea why that was the case, but setting enabled = true seems to do the trick.

    function dropdown2(win_location, win_width, h50, list2) { 

        var ww = new Window ("dialog"); 

        var g = ww.add ("group"); 

        var panel = g.add("panel", [0, 0, 300, 200]);

        var dd = panel.add('dropdownlist',[4, 4, 290, 20],list2);

        var sbar = g.add ("scrollbar", [0, 0, 20, 200]);

        sbar.enabled=true;

        ww.show();

    } 

     

    var w = new Window ("dialog"); 

...
Translate
Adobe
Community Expert ,
Aug 09, 2014 Aug 09, 2014

what's not working? what are you trying to do?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 03, 2014 Sep 03, 2014

bar in scrollbar does not moved/selected in a nested dialog (in the code from the first post)

in main dialog work well

dropdown2([200, 200], 200, 50, ["asdaf", "asdaf", "asdaf", "asdaf" ]);

IMHO bug.

May need to know about this bug to developers?


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 03, 2014 Sep 03, 2014

the scrollbar does move, the script works ok, exactly the way you have scripted it...can you explain in more detail what you're trying to do?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 03, 2014 Sep 03, 2014

function dropdown2(win_location, win_width, h50, list2) {

    var ww = new Window ("dialog");

    var g = ww.add ("group");

    var panel = g.add("panel", [0, 0, 300, 200]);

    var sbar = g.add ("scrollbar", [0, 0, 20, 200], list2);

    ww.show();

}

dropdown2([200, 200], 200, 50, ["asdaf", "asdaf", "asdaf", "asdaf" ]);

var w = new Window ("dialog");

w.add("button", undefined, "asdads").onClick = function () {

  dropdown2([200, 200], 200, 50, ["asdaf", "asdaf", "asdaf", "asdaf" ]); };

w.show();

Illustrator CC 2014

Ctrl+F12

first scrollbar its ok

2014-09-04_08-58-55.png

2014-09-04_09-03-56.png

press button

2014-09-04_09-05-12.png

scrollbar arrows -> gray

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 04, 2014 Sep 04, 2014

ok, this is a different script...I can't reproduce your problem with CS5, it may be a bug.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 04, 2014 Sep 04, 2014

Yes, it was well to CS5, CS6

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Sep 04, 2014 Sep 04, 2014

No idea why that was the case, but setting enabled = true seems to do the trick.

    function dropdown2(win_location, win_width, h50, list2) { 

        var ww = new Window ("dialog"); 

        var g = ww.add ("group"); 

        var panel = g.add("panel", [0, 0, 300, 200]);

        var dd = panel.add('dropdownlist',[4, 4, 290, 20],list2);

        var sbar = g.add ("scrollbar", [0, 0, 20, 200]);

        sbar.enabled=true;

        ww.show();

    } 

     

    var w = new Window ("dialog"); 

    w.add("button", undefined, "asdads").onClick = function () { 

        dropdown2([200, 200], 200, 50, ["asdaf", "asdaf", "asdaf", "asdaf" ]);

    }; 

    w.show();

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 04, 2014 Sep 04, 2014
LATEST

thank you
so easy
I did not think
and created the scroll buttons instead of scrollbars

2014-09-04_21-04-36.png

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