4 Replies Latest reply on Aug 13, 2010 6:15 AM by brettpolo

    [JS CS4] How to allow "returns" in multiline edittext in scriptui

    Skempy Level 1

      Hi,

       

      I can build VERY simple dialogs using scriptui.

       

      var w = new Window('dialog',"Label",undefined);
      w.minimumSize.height = 250;
      w.minimumSize.width = 250;
      w.myText = w.add('edittext',undefined,myValue, {multiline:true, scrollable:true});
      w.myText.minimumSize.width = 240;
      w.myText.minimumSize.height = 240;
      w.show();

       

       

      Is there any way to allow the Return key to be used to create new lines? And how would I recognise these Returns when reading the content later.

       

      Thanks

       

      Simon.