2 Replies Latest reply on Dec 23, 2013 8:44 AM by Larry G. Schneider

    simple dialog - panel and checkboxes

    postworek111

      I have very simple dialog - just one panel and few checkboxes. When I set panel as "undefined" everything works right, but when i set a size of the panel checkboxes disappear.

       

      Works

      var win = new Window ("dialog", "test");
      var panelOpcje = win.add("panel", undefined, "Options");
      var check1 = panelOpcje.add("checkbox", undefined, "check1");
      var check2 = panelOpcje.add("checkbox", undefined, "check1");
      win.show();

      http://i1361.photobucket.com/albums/r676/postworek/dobrze_zpse938dea1.jpg

       

      This doesn't work

      var win = new Window ("dialog", "test");
      var panelOpcje = win.add("panel", [0,0,400,300], "Options");
      var check1 = panelOpcje.add("checkbox", undefined, "check1");
      var check2 = panelOpcje.add("checkbox", undefined, "check1");
      win.show();

      http://i1361.photobucket.com/albums/r676/postworek/zle_zpsccd30f4e.jpg

      What am I doing wrong, where are my checkboxes?