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

Listbox multiselect creation property not working

Enthusiast ,
Jul 25, 2005 Jul 25, 2005
I cannot get the listbox creation property "multiselect" to work on a win xp machine. I should be able to either control or shift click to make a multiselect of listbox items, but I can only select one item.

I took a look at the ImportCamera_BR script and noticed that Bob was using the same procedure and this implementation does not work on my computer either. The code Bob uses is:

d.folderPath = folderPathGroup.add( "listbox", undefined, {multiselect:true} );
d.folderPath.preferredSize = [400,100];
...

Is this a known bug or am I doing something wrong?

Rory
TOPICS
Scripting
482
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 ,
Jul 25, 2005 Jul 25, 2005
Rory,

The third argument to create a list box is an optional array of strings that it uses to create items.

To make it work you need to have undefined as the third argument (or pass it an array of strings):

d.folderPath = folderPathGroup.add( "listbox", undefined, undefined, {multiselect:true} );
d.folderPath.preferredSize = [400,100];

Bob
Adobe WAS Scripting
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
Enthusiast ,
Jul 25, 2005 Jul 25, 2005
Thanks Bob. That did the trick.

Don't forget to fix your code too ;^)

Regards
Rory
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 ,
Jul 26, 2005 Jul 26, 2005
LATEST
Yeah, I was hoping that wasn't the case. Oh Well...

Bob
Adobe Workflow Scripting
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