3 Replies Latest reply on Mar 11, 2011 7:11 AM by Larry G. Schneider

    user interface and dropdowns

    jeanmed

      Dear,

       

      I need to change value on a user interface directly before executing the script in indeseign.

       

      Exemple :

      on my user interface i have a dropdowns. I need to change a text in the same user interface when i select a different value from the dropdowns.

       

      I need to know how to use the change event of a dropdowns in a user interface.

       

      Thanks for your help.

       

      My code :

      mySnippet();

       

      function mySnippet(){
          var myDialog = app.dialogs.add({name:"Search by ratio : ", canCancel:true});
          with(myDialog){
             
             
          with(dialogColumns.add()){
                  //Create another border panel.
                  with(borderPanels.add()){
                     
                 
                      with(dialogColumns.add()){
                          //Create a pop-up menu ("dropdown") control.
                          var typeDeCharte = dropdowns.add({stringList:["value1", "value2", "value3"], selectedIndex:0});
                      }
                  with(dialogColumns.add()){
                          staticTexts.add({staticLabel:"text to change :"});
                      }   
                  }
             
                 
                 
                 
                 
              }

       

          }
          if(myDialog.show() == true){

       

              //here i need change the value of the text : text to change :
            
            }}