5 Replies Latest reply on Jun 11, 2012 5:14 AM by Velprakash

    Drag and Drop in tree view of XMLt


      Hi Indesign Experts,

                  I've a Indesign document. For that i Write a codes to display the xml in tree view in a output window. I got it as success. But my pblm is, I'm trying to drag and drop the elements by mouse. For that, I can't able to find a proper guide.... Can any one guide me...


      My script:

      // treeview creation in ne window.


      var panel = win.add("panel", undefined, "Select XML Element");

      panel.alignment = ["fill", "fill"];

      panel.alignChildren = ["fill", "fill"];



      var treeview = panel.add("treeview");

      treeview.preferredSize = [300, 500];


      Thanks in Advance,