2 Replies Latest reply on Nov 13, 2016 5:48 PM by K159

    [JS SUI] How to create activated palette?

    K159 Level 1

      Hi all.

       

      I want to show palette as activated status.

       

      I tried to set active property. But it is activated for a while and then deactivated again.

       

      Is it possible?

       

      Thanks in advance.

       

       

       

      #targetengine session
      
      var win = createWindow();
      win.show();
      win.onShow = function(){
          win.active = true;
      }
      
      function createWindow () {
          var w = new Window ('palette');
          var m = w.add ('statictext');
          m.text = 'Hello, world!';
          return w;
      }