Skip to main content
bduffy323
Inspiring
November 7, 2012
Answered

ScriptUI: multiple multiline edittexts

  • November 7, 2012
  • 1 reply
  • 1219 views

After doing some research and frustratingly hitting my enter key 1,000 times I can't seem to be able to type a return character into a multiline text box. Is there something I am missing? I have about 5 or so multiline edit text boxes in a palette and I would like to be able to type multiple lines into.

Thanks,

Brian

This topic has been closed for replies.
Correct answer 999klustre_

If you're on CS6 you can use wantReturn:

var w = new Window("palette");

w.group = w.add ("group {alignment: 'center'}");

var e1 = w.group.add("edittext", [0,0,150,100], undefined, {multiline: true, wantReturn:true});

var e2 = w.group.add("edittext", [25,0,175,100], undefined, {multiline: true, wantReturn:true});

If you're not on CS6 you have to do CTRL+Return (on OSX). Not sure about Windows.

1 reply

999klustre_
999klustre_Correct answer
Inspiring
November 7, 2012

If you're on CS6 you can use wantReturn:

var w = new Window("palette");

w.group = w.add ("group {alignment: 'center'}");

var e1 = w.group.add("edittext", [0,0,150,100], undefined, {multiline: true, wantReturn:true});

var e2 = w.group.add("edittext", [25,0,175,100], undefined, {multiline: true, wantReturn:true});

If you're not on CS6 you have to do CTRL+Return (on OSX). Not sure about Windows.

bduffy323
bduffy323Author
Inspiring
November 7, 2012

I had no idea they added this property in cs6. Thank you for pointing that out!