4 Replies Latest reply on Sep 21, 2015 12:55 AM by K159

    listbox focus

    K159 Level 1

      main();
      function main()
      {
           var w = new Window ("dialog","test");
          var Columns = w.add("group"); Columns.spacing=0;
          var Header = {numberOfColumns: 1, showHeaders: true, columnWidths: [50]};
          Header.columnTitles = ["month"];
          var Col = Columns.add ("listbox", undefined, ["1","2","3","4","5","6","7","8","9","10","11","12"], Header);
        
          Col.preferredSize = [65,85];
          Col.selection = 8;
          Col.revealItem(8);

         
          w.show();
      }

       

      revealItem does not apply.

      Where I went wrong?

       

      Thanks for help.