Skip navigation
Shadowfax
Currently Being Moderated

Scroll bar in a palette

Jul 23, 2012 11:30 PM

Tags: #scripting #palette

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

 
Replies
  • Currently Being Moderated
    Jul 24, 2012 1:50 AM   in reply to Shadowfax
     
    |
    Mark as:
  • Currently Being Moderated
    Jul 24, 2012 2:00 AM   in reply to Vamitul

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

     

    Uwe

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 6:03 AM   in reply to Shadowfax

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 6:15 AM   in reply to Shadowfax

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 25, 2012 7:55 AM   in reply to Shadowfax

    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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points