3 Replies Latest reply on Jan 11, 2011 1:16 AM by Harbs.

    the 'right' way to do script ui

    thomas rollins

      i'm looking into doing a semi-complicated ui. i've done some basic ui stuff before, but i've seen information on the internet that is conflicting between the 'correct' way to do script ui. i've seen: var w = new Window("dialog"); w.add("statictext", undefined, "label text"); and i've also seen var dlg = new Dialog();

       

      which is the right way? am i right in thinking that new Dialog() is the correct way?

       

      I'm confused because I need to add a few push buttons, and though i could do w.add("button", undefined, "label"); with the first format, I can't find an alternative for the latter method. ie: var col = dlg.dialogColumns.add(); col.staticTexts.add()...