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

scrollbox Multiple selection

Explorer ,
Dec 20, 2017 Dec 20, 2017

Hi.

Is it possible to set scrollbox on a  custom dialog to multiple selection?

If it is, please tell me how to do it.

Thank you.

TOPICS
Scripting
604
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

Enthusiast , Dec 22, 2017 Dec 22, 2017

Not good news with the FDK dialogs. The description of the ScrollBox reads:

F_ApiScrollBox() displays an array of items and allows the user to choose one.

The arguments for F_ApiScrollBox() also define 'selected_item' as IntT. So unless anyone knows of an undocumented feature, the answer is single selections only.

The reason I asked if you are using ExtendScript is that you can allow multiple selections in its equivalent control.

One way to get around this limitation is to use the double scroll box

...
Translate
Enthusiast ,
Dec 21, 2017 Dec 21, 2017

Hi,

Are you using the FDK or ExtendScript with Script UI?

Ian

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
Explorer ,
Dec 21, 2017 Dec 21, 2017

I am using the FDK.

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 ,
Dec 22, 2017 Dec 22, 2017

Over to Scripting you go then ;>)

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
Explorer ,
Dec 24, 2017 Dec 24, 2017

Hi, Jeff.

I'd like to extend the functionality of my existing plugins, so I am not thinking about using ExtendScript now.

But  thank you for your advice

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 ,
Dec 22, 2017 Dec 22, 2017

Not good news with the FDK dialogs. The description of the ScrollBox reads:

F_ApiScrollBox() displays an array of items and allows the user to choose one.

The arguments for F_ApiScrollBox() also define 'selected_item' as IntT. So unless anyone knows of an undocumented feature, the answer is single selections only.

The reason I asked if you are using ExtendScript is that you can allow multiple selections in its equivalent control.

One way to get around this limitation is to use the double scroll box concept to move items between the two scroll boxes which can be seen in several places in the FrameMaker UI:

ScrollBox.png

I hope that this is useful information?

Ian

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
Explorer ,
Dec 24, 2017 Dec 24, 2017
LATEST

Hi,lan.

Thank you for your advice, I'd like to create two scroll boxes.

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