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

Scroll bar in a palette

Explorer ,
Jul 23, 2012 Jul 23, 2012

Copy link to clipboard

Copied

How to add the scroll bar  in a palette containing the list of images (JSX)?

TOPICS
Scripting

Views

2.2K

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
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 25, 2012 Jul 25, 2012

csm_phil, that is (again) for a plain text field.

Read http://forums.adobe.com/thread/573855. Don't be alarmed by Marc's 1,000+ sample code somewhere near the start, below it is a further discussion on scrollable panels by Bob Stucky.

Votes

Translate

Translate
Advisor ,
Jul 24, 2012 Jul 24, 2012

Copy link to clipboard

Copied

Votes

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
community guidelines
Community Expert ,
Jul 24, 2012 Jul 24, 2012

Copy link to clipboard

Copied

@Vamitul – And one of the good parts of this solution is: you can copy/paste the alert message easily…

Uwe

Votes

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
community guidelines
Explorer ,
Jul 25, 2012 Jul 25, 2012

Copy link to clipboard

Copied

Thnks for the reply.

Actually my query is that, how could we add scrollbar to a palette.. so that the images inside the palette changes with the scrolling.

Votes

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
community guidelines
Advocate ,
Jul 25, 2012 Jul 25, 2012

Copy link to clipboard

Copied

Hi sahil,

Please try the below JS code is shown in the scroll bar its work in the palette,

#targetengine "session";

var myDoc = app.activeDocument;

var myLinks = myDoc.links.everyItem().name.join("\n");

var w = new Window ("palette", "Arts Name list");

var myText = w.add ("edittext", [0, 0, 200, 150], "", {multiline: true, scrolling: true});

myText.text = myLinks;

w.show ();

thx

csm_phil

Votes

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
community guidelines
Explorer ,
Jul 25, 2012 Jul 25, 2012

Copy link to clipboard

Copied

thanks for relpy,...

instead of editbox, i have "n" panels inside that palette; and say i have to enabling scrolling in the palette so that at a time "x" panels are shown...

Votes

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
community guidelines
Community Expert ,
Jul 25, 2012 Jul 25, 2012

Copy link to clipboard

Copied

csm_phil, that is (again) for a plain text field.

Read http://forums.adobe.com/thread/573855. Don't be alarmed by Marc's 1,000+ sample code somewhere near the start, below it is a further discussion on scrollable panels by Bob Stucky.

Votes

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
community guidelines
Explorer ,
Jul 25, 2012 Jul 25, 2012

Copy link to clipboard

Copied

thnx for the wonderful guide.

One more query..

I have the following heirarchy: Palette -> Panel -> n sub-panels (each containing an icon_group & a statictext_group)

now, i had given the dimensions & location to all these object by myself. When i run the script, for the first time the placements of objects is slightly different; but after i refreshes the palette, they come to the position that i had defined .

The problem is that why on the first call it shows differently..?

Votes

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
community guidelines
Community Expert ,
Jul 25, 2012 Jul 25, 2012

Copy link to clipboard

Copied

Here is a more digestible script than those in the link Jongware gave: http://indesign-faq.de/de/ScriptUI_scrollbar. It does exactly what you want. The short explanation is in German, but the code is JavaScript, so you should be able to work out how it works. In the ScriptUI for Dummies is an example of a scrollable panel with edit boxes, which is just a variant on what you want.

Peter

Votes

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
community guidelines
Explorer ,
Jul 25, 2012 Jul 25, 2012

Copy link to clipboard

Copied

LATEST

thnx a lot.. that's exactly that i wanted

Votes

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
community guidelines