5 Replies Latest reply on Sep 2, 2016 4:50 AM by cbishop01

    Side by side Checkboxes question.

    cbishop01 Level 2

      I knew how to do this on my other script but its been changed so much that i dont know where to start.  How can i place these checkboxes side by side to have 2 rows instead of 1 long row? the FULL script is here minus the addition below How to make this check box Apply to all Documents?

       

        w.tabs[1]= w.tabGroup.add ('group');  
        w.tabs[1].add('statictext {text: "Select a change to make"}');  
        w.tabs[1].add ('panel');  
      with(w.tabs[1])  
      var p1 = w.tabs[1].add('panel {text: "CHANGES", preferredSize: [-1, 100],orientation: "column",alignChildren: ["left","Center"]}');  
        new CBX ( p1, 'APPLY TO ALL DOCUMENTS', false, cb1CallBack );  
        new CBX ( p1, 'Find and Replace', false, cb2CallBack );    
        new CBX ( p1, 'RQ and Bigger GHS Running Changes English / Spanish / French', false, cb3CallBack );    
        new CBX ( p1, 'RP and Smaller GHS Running Changes English / Spanish', false, cb4CallBack );    
        new CBX ( p1, '5 Galon weight Statement change to 18.924 Liters', false, cb5CallBack );  
        
      //Start of ListBox  
      var Pan1=w.tabs[1].add ('panel {text: "GHS!!", preferredSize: [-1, 100],orientation: "column",alignChildren: ["left","Center"]}');  
      
       And the search string i'm trying is.   
      myResult = w.show();   
             
      function cb1CallBack() {  
          if(myResult == 1 && (cb1CallBack.value==true)){        
                  Replace_TXT(" <CR> ", "^p");      
                  Replace_TXT(" <CR>", "^p");      
                  Replace_TXT("  ", " ");      
                  Replace_TXT(" :", ":");      
                  Replace_TXT(" .", ".");      
                  Replace_TXT("^p^p", "^p");      
       }    
      }   
          function cb2CallBack() {}  
          function cb3CallBack() {}   
          function cb4CallBack() {}   
          function cb5CallBack() {}   
          function cb5CallBack() {}   
          function cb6CallBack() {}   
          function cb7CallBack() {}   
          function cb8CallBack() {}   
          function cb9CallBack() {}   
          function cb10CallBack() {}    
            
            
          function Replace_TXT(input, output)        
       {        
          app.findChangeTextOptions.caseSensitive = true;        
          app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;        
          app.findTextPreferences.findWhat = input;        
          app.changeTextPreferences.changeTo = output;        
          app.documents[0].changeText();      
      
      
      
        
       }   
      }  
          main();  
      
      

      Thanks in advance.