0 Replies Latest reply on Apr 21, 2018 3:31 AM by geppettol66959005

    cc2018 panel palette vs dialog

    geppettol66959005 Level 3

      When I open the palette panel on photoshop 2018 and off only when I go with the mouse on it lights up

       

      1 PAL.png

       

      On the other hand, if I put a dialog on palettes, this is immediately turned on

       

      1 DI.png

      how to make the palette panel lit also

       

      // script

      
      /////////////////panel  1
      
      
      var win = new Window("palette", "PANEL PALETTE");
      win.cancelOk = win.add('panel', [10,495,300,540], "");
         win.cancelOk.buildBtn = win.cancelOk.add('button', [10,10,180,35], 'OPEN PANEL B', {name:'ok'});
         win.closeButton = win.cancelOk.add("button",  [190,10,280,35], "CLOSE PANEL A");
      
      
      ////////////////////////////////////////////start panel 2//////////////////////////////////////////
      
      
         win.cancelOk.buildBtn.onClick = function () {
      var win = new Window("palette", "PANEL B");
      win.cancel2Ok = win.add('panel', [10,495,300,540], "");
      
      
         win.closeButton = win.cancel2Ok.add("button",  [10,10,280,35], "CLOSE PANEL B");
      
      
      win.onDeactivate = function(){
         win.update();
         };
      
      
      
      var closeWin = false;
      win.closeButton.onClick = function(){
         closeWin = true;
         win.close();
      
      
          };
      
      
      win.onClose = function(){
         closeWin = true;
          };
      
      
      
      
      win.show();
      
      
      while(closeWin == false){
         app.refresh();
          };
        }
      
      
        ////////////////////////////////////////////finish panel 2//////////////////////////////////////////
      
      
      //////////////finisch panel 1
      
      
      
      
      win.onDeactivate = function(){
         win.update();
         };
      
      
      
      
      
      var closeWin = false;
      win.closeButton.onClick = function(){
         closeWin = true;
         w.close();
          };
      
      
      
      
      
      win.onClose = function(){
         closeWin = true;
          };
      
      
      
      
      win.show();
      while(closeWin == false){
         app.refresh();
          };