[JS CS4] How to allow "returns" in multiline edittext in scriptui
hi,
i can build 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 way allow return key used create new lines? , how recognise these returns when reading content later.
thanks
simon.
afaik, within multine edittext return key works on mac platform.
on win platforms user can press ctrl+enter insert new line.
then, in order parse resulting lines in array this:
var lines = w.mytext.text. replace("/[\r\n]+/g","\n"). split("\n");
@+
marc
More discussions in InDesign Scripting
adobe
Comments
Post a Comment