Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

How can i make it auto line alignment in ScriptUI?

$
0
0

line.jpg

 

I want that form recognize new line character. (like '\n')

 

So I programmed like this. But it's not working.

 

//////////////////////////////////////////////////////////////////////////////

var win =new Window ("dialog", "test");
win.orientation = "column";

 

var form1 = win.add ("edittext", undefined, "");
form1.onChanging = function(){
  if(form1.text.search("\n") == true){
   form2.active = true;
  }
}

 

var form2 = win.add ("edittext", undefined, "");

var form3 = win.add ("edittext", undefined, "");

 

win.show();

 

//////////////////////////////////////////////////////////////////////////////

 

How can i make it auto line alignment in ScriptUI?

 

Is it possible?


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>