How can i make it auto line alignment in ScriptUI?

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?

Your answer is not exactely I want.
But I got hint from your answer.
All I want is "How I can split multilined text into dozen edittext field?"
So I can make this from your sourcecode.
Your answer is so helpful.
Thank you.
var win = new Window ("dialog", "test");
win.orientation = "column";
var charLen=30;
var copytext = [];
var form0 = win.add ("edittext", [0, 0, 150, 200], "", {multiline:true});
form0.height = 100;
var form1 = win.add ("edittext", undefined, "",{readonly:true});
form1.characters = charLen;
var form2 = win.add ("edittext", undefined, "",{readonly:true});
form2.characters = charLen;
var form3 = win.add ("edittext", undefined, "",{readonly:true});
form3.characters = charLen;
form1.active = true;
form0.onChanging = function(){
    form1.text = form0.text.split('\n')[0]
form2.text = form0.text.split('\n')[1]
form3.text = form0.text.split('\n')[2]
win.show();

Similar Messages

  • How can i make a vertical line in Application Toolbar when creat GUI STATUS

    I see some standard UI have a separator vertical line in the  GUI STATUS--Application Toolbar?
    Could you tell me how can i creat it in my customer  GUI STATUS?
    TKS a million~~

    Hi.
    Please try.
    1)Change mode your GUI-STATUS.
    2)menu -> Edit -> Insert -> Separator line.

  • How can I make the GRID lines more bold within a table in the new Pages?  (Not the outline of a table)

    I can't find where to darken GRID lines on a table in the new Pages.  I can make the outline more bold, but not the grid lines within the table.  Is there a way to do this?  The default grid lines are far too faint.

    Yeah, the Help is missing a little.
    If you select the block of cells that you want to change, then in the Format inspector:
    Select the Cell tab
    Expand the Border section
    Set a line type
    Set a line width
    Choose a line color
    Choose one of the nine options for which borders get the new settings

  • How can I make horizonal auto scrolling in JList?

    I want the horizontal scrollbar to appear only if one of the rows of the JList is larger than the Jlist.
    by the way, the JList is captured in JScrollPane, but I can have only vertical scrollbar.
    thanks, Lior.

    Your answer is not exactely I want.
    But I got hint from your answer.
    All I want is "How I can split multilined text into dozen edittext field?"
    So I can make this from your sourcecode.
    Your answer is so helpful.
    Thank you.
    var win = new Window ("dialog", "test");
    win.orientation = "column";
    var charLen=30;
    var copytext = [];
    var form0 = win.add ("edittext", [0, 0, 150, 200], "", {multiline:true});
    form0.height = 100;
    var form1 = win.add ("edittext", undefined, "",{readonly:true});
    form1.characters = charLen;
    var form2 = win.add ("edittext", undefined, "",{readonly:true});
    form2.characters = charLen;
    var form3 = win.add ("edittext", undefined, "",{readonly:true});
    form3.characters = charLen;
    form1.active = true;
    form0.onChanging = function(){
        form1.text = form0.text.split('\n')[0]
    form2.text = form0.text.split('\n')[1]
    form3.text = form0.text.split('\n')[2]
    win.show();

  • How can I make a squiggly line in Adobe Acrobat 9 Standard

    Or edit a straight line with a squiggly line style (or import new line styles)
    Thanks!

    If it does not need to be neat, just use the pencil tool. The only other option would be to check the properties of a line you make and see if there is a format option, I don't remember seeing one.

  • How can I make the pen lines invisible?

    I have made lots of edits with the pen tool, and I am noticing that the lines from the pen are a different color than what the shape is I made. Is there a way to make these lines from the pen invisible?
    Thanks so much for any help!

    Hello Les and Salah,
    I appreciate your reply. Unfortunately, all the objects with pen lines have a stroke of 0 pt already... I have a picture to show you what I am working on... The very thin blue lines are my issue. Thank you so much.

  • How can I make grid lines in ICAL darker?

    How can I make the grid lines darker in I CAL ?

    Numbers on ipad does not give you the option of adding trend lines to your graphs at this time.
    Jason

  • How can I make Thunderbird start auto with windows start-up

    how can I make Thunderbird start auto with windows start-up

    You can by placing a short cut in the windows startup folder, just like any other windows program.
    However if you do you are likely to encounter problems as downloading mail while the anti virus is still loading and the network is busy announcing your machines arrival to the network ( which might be a network of one) and any of a dozen other program are loading is fraught with risk of timeouts and server disconnections as well as error messages that make little sense because they are about something that is still loading.
    So the bottom line is sure you can, but if there are issues take it back out of there as a first step.

  • How can I make a gray box or gray screen in Pages over a few lines of text?

    How can I make a gray box or gray screen in Pages over a few lines of text?

    Thanks. Almost what I was looking for.
    While that makes for a gray over the lines, it still does not form a box.
    Any other suggestions to form a solid rectangular gray box?

  • How can I make my user input on the same line as the question?

    The only way I know of doing it is
    System.out.println ("Please enter an uppercase letter of the English Alphabet: ");
              letter = dataIn.readLine ();But that makes Please enter an uppercase letter of the English Alphabet:
    **User input here, a line down**So how can I make it all fit into one line with this sort of layout:
    Please enter an uppercase letter of the English Alphabet:  **USER INPUTS HERE, SAME LINE**

    change your call from println to print.
    check the API docs for this stuff, it tells you everything you need to know.
    Good Luck
    Lee

  • How can I make a line at 40 degree angle in Keynote 6

    How can you make a line of 40 degrees (or anywhere between 40 to 45) angle in the new Keynote 6.2.2. It seems they took away that nice feature from the previous version. When I move one end of a line, it locks onto 45 when I get near that angle, and jumps off directly to 34 when I try to move away. Previously you could click on a line to transform the ends into red spots, and move them independently to any angle or length. Now it locks onto 45, or 135 or 90 etc. I don't have any of the guides on or any other feature. This is supposed to happen only when holding shift key (which is also a great feature). If it locks onto the magic angles without holding shift, then there is no sense if having that feature at all.

    Press the command key when dragging, this switches off snapping and allows continuous placement.
    If you like numerical control:     Inspector > Format > Arrange > Rotate

  • How can I make Color Tags color the whole line?!

    All,
    I have been using Color Tags every since they first  appeared on the Mac. It WAS great to color code files and folder of which I now have hundreds done that way. Problem is that now Apple has done away with the easy to see, easy to use colored line and replaced it with a stupid tiny dot. How can I get my colored lines back? Why does Apple keep changing things that have worked for year into things the are HARDER to use?
    Thanks,
    Dan

    "Labels" has been changed to "Tags" in Mavericks. It appears that you cannot modify the appearance of Tags in Mavericks at this point.
    There have been several threads on the subject in this forum, and the some of the suggested solutions are to revert your OS back to the system you had prior to Mavericks, or investigate 3rd party software such as Pathfinder, which allow you to modify the  presentation in the finder -
    www.cocoatech.com/pathfinder/
    Apple does not monitor these threads, so the only way to make sure way to make sure Apple hears your opinion on this is to give your feedback directly to Apple:
    http://www.apple.com/feedback/macosx.html
    MtD

  • How can i make Trend lines in numers for iPad

    Does numbers support trend lines? How can i make them?
    Thank you in advance

    Numbers on ipad does not give you the option of adding trend lines to your graphs at this time.
    Jason

  • How can I make the line segment tool repeat several times?

    How can I make the line segment tool repeat several times?

    If this is what you want, hold the ~ key on your keyboard while dragging with the tool.
    If you want spaced copies of the completed line, use the Transform Effects from the Effects menu.

  • How can I make command line interface (CLI)

    Hi All,
    How can I make command line interface ( CLI ) In Java using JTextArea or JTextField.
    Thanks In advance..
    Vikas Sahu

    We do agree with your assessment and have plans to improve all of these aspects. Unfortunately, it takes a long time and a lot of work to turn "working" software into "simple to use" software, but we are working on it, and it is a high priority for us to make it simpler to use and develop for and administer Coherence.
    Peace,
    Cameron Purdy | Oracle Coherence

Maybe you are looking for

  • How to force Adobe Application Manager to reinstall all the cluod products

    Hi Due to a serious failure on my Windows 8 computer I had to restart the configuration from a Safe Point; unfortunately that configuration was not including Adobe products, so the restart has PARTIALLY erased main part of my applications, but NOT CO

  • Synchronisation problems

    I have recently upgraded to windows 7 ultimate on tow of my laptops. The one is an HP 4510s and I have no problem synchronising with my Nokia N97 using PC suite 7.1.40.1. However when I try and synchronise with my other Laptop an Asus F5RL  with the

  • Can I call a C program in trigger, and pass updated data to this program?

    Can I call a C program in Oracle trigger, and pass updated data to this program? Thank you

  • A Form Queston

    Hello everyone. I just got flex and I'm having fun playing around with it. I was wondering How could I make a form to submit what the user put in it to an e-mail. I'll show you an example what I mean. The Form Also anyway to get an HTML form to impor

  • Btinternet Issue With Sent Item

    I'm having a problem with Mail and I was wondering if anyone could shed some light on what I am doing wrong. I've set up Mail to work with my Btinternet account. It all seemed OK, but it appears that emails sent within Mail do not appear in my sent i