How to add a line in Indesign CS4

In Indesign 2.0, add that a line is Document.Lines.add

But in CS4, there is no method of Lines.Add,

So, how do you add a line in ID CS4?

FlexMitchell wrote:

In Indesign 2.0, add that a line is Document.Lines.add

But in CS4, there is no method of Lines.Add,

So, how do you add a line in ID CS4?

In InDesign 2.0 . Lines collection was for graphic lines and . TextLines for lines of text. ID CS1 everything was changed - . GraphicLines has information about the graphic lines and . Lines collection contains information on lines of text.

Robin

www.adobescripts.com

Tags: InDesign

Similar Questions

  • How to add multiple lines when the button is clicked

    How to add multiple lines when the click on button now is just add a row .plz give me idea how... waiting for answer

    / public final class screen extends MyScreen
    {
    /**
    * Creates a new object of MyScreen
    */
    ObjectChoiceField obj1 obj2, obj3, obj4.
    Table of String() = {'101 ', ' 102'};
    String of shadow [] = {"Shade1", "Shade2"};
    Rolls of string [] = {'101 ', ' 102'};
    String cutting [] = {"100-150", "150-200"};
    Chain of selectedindex1, selectedindex2, selectedindex3, selectedindex4;
    LabelField lbl1 lbl2, lbl3, lbl4;
        
    GFM LinedGridFieldManager;
    HFM HorizontalFieldManager, hfm1, hfm2 hfm3;
    VerticalFieldManager vfmMain;
        
    public MyScreen()
    {
        
    Set the displayed title of the screen
    hfm1 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm2 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    hfm3 = new HorizontalFieldManager (HorizontalFieldManager.NO_VERTICAL_SCROLL |) HorizontalFieldManager.NO_VERTICAL_SCROLLBAR);
    HFM = new HorizontalFieldManager (HorizontalFieldManager.FIELD_RIGHT);
    vfmMain = new VerticalFieldManager (Manager.NO_VERTICAL_SCROLL |) Manager.NO_HORIZONTAL_SCROLLBAR);
            
    obj1 = new ObjectChoiceField ("", graph, 0, FIELD_LEFT);
    obj2 = new ObjectChoiceField ("", blind, 0, FIELD_LEFT);
    Obj3 = new ObjectChoiceField ("", rolls, 0, FIELD_LEFT);
    Obj4 = new ObjectChoiceField ("", cuts, 0, FIELD_LEFT);
            
    LBL1 = new LabelField("");
    LBL2 = new LabelField("");
    lbl3 = new LabelField("");
    lbl4 = new LabelField("");
            
    ButtonField btnAdd = new ButtonField ("ADD", FIELD_RIGHT);
            
    GFM = new LinedGridFieldManager (4, LinedGridFieldManager.VERTICAL_SCROLL);
            
    hfm1.setMargin (20, 0, 10, 0);
    hfm1. Add (new LabelField ("Chart"));
    hfm1. Add (obj1);
    hfm1. Add (new LabelField ("Shade"));
    hfm1. Add (obj2);
            
    hfm2. Add (new LabelField ("Rolls"));
    hfm2. Add (Obj3);
    hfm2. Add (new LabelField ("Cuts"));
    hfm2. Add (Obj4);
    HFM. Add (btnAdd);
            
    GFM. Add (new LabelField ("Chart"));
    GFM. Add (new LabelField ("Shade"));
    GFM. Add (new LabelField ("Rolls"));
    GFM. Add (new LabelField ("Cuts"));
            
    vfmMain.add (hfm1);
    vfmMain.add (hfm2);
    vfmMain.add (hfm3);
    vfmMain.add (hfm);
    vfmMain.add (new SeparatorField());
    vfmMain.add (gfm);
    Add (vfmMain);
            
    btnAdd.setChangeListener (new FieldChangeListener()
    {
    ' Public Sub fieldChanged (field field, int context) {}
    TODO self-generating method stub
    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];
                    
    While (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }
    }
    });
    }
    }

    Hi Piya,

    I run your code, and according to your logic that it works correctly.

    It's adding that line only once because according to your logic that one line can be added to MDT, if you do not want to add line on each click on the button, follow these steps:

    selectedindex1 = chart [obj1.getSelectedIndex ()];
    selectedindex2 = shade [obj2.getSelectedIndex ()];
    selectedindex3 = rolls [obj3.getSelectedIndex ()];
    selectedindex4 = cuts [obj4.getSelectedIndex ()];

    Lbl1 LabelField = new LabelField("");
    Lbl2 LabelField = new LabelField("");
    LabelField lbl3 = new LabelField("");
    LabelField lbl4 = new LabelField("");
    If (LBL1. GetText(). Equals("") | LBL2. GetText(). Equals("") | lbl3. GetText(). Equals("") | lbl4. GetText(). Equals(""))
    {
    LBL1. SetText (selectedindex1);
    LBL2. SetText (selectedindex2);
    lbl3. SetText (selectedindex3);
    lbl4. SetText (selectedindex4);
                    
    GFM. Add (LBL1);
    GFM. Add (LBL2);
    GFM. Add (lbl3);
    GFM. Add (lbl4);
                    
    }

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • How to add more line by line?

    Hi all

    Please let me know how to add addition line by line as the title:

    DEPTNO num1, num2, num3 total num
    1100 20 30
    1200 20 10
    1300 40
    1400 30


    your suggestion would be greatly appreciated.

    Something like that?

     SELECT deptno,num1,num2,num3, num1+num2+num3 "Tot"
     FROM ....
    
  • How to add a line break in shortDesc?

    How to add a line break in shortDesc?

    Hey Danny,

    I think you can't... but I did two work around to achieve this goal:

    1. in IE7 (not Mozilla Firefox) If you type a space between the words will be automatically pass the new line like:


    shortDesc = "firstWord... spaces... Second word"/ >

    2. you can use popup like a ToolTip like:








    Sameh Nassar

  • How to add directional lines on a map in a phone book to show the destinations?

    Directions in iPhoto do not match the real software. How do I add directional lines on a map to show where we left and where are final destination will be?

    What version of iPhoto do you use?  Or you use 'Photos for Mac', as you post the pictures to Mac forum?

    In iPhoto 9.6.1 between that you can add markers place lines by activating the lines in the options for the cards.  The value 'Lines' 'Right' or 'curve '.

  • MaxL script syntax: how to add comment lines?

    How can I add comment lines to the MaxL scripts? REM did not work, "did not work.

    http://download.Oracle.com/docs/CD/E10530_01/doc/EPM.931/html_esb_techref/MAXL/DDL/utils/Shell/syntax.htm

    Hello

    You add comments and C++ with / * for beginning and * / for the commentary to the end.

    Welcome them
    Kevin

  • How to add a line selector

    Hello

    I'm usign a latest version of Application Express 3.1.1.00.09 how do I add a line selector in this version in older versions that I use to make the report can be updated and add a line here selector in this version, I think that we have any option please suggest me adding a line selector


    Thank you
    Sudhir.

    Hello

    In the header of your column, you can put

    
    

    Kind regards
    Dimitri
    ----------------------------------
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/
    http://www.apexblogs.info/
    AWARDS: Don't forget to mark correct or useful posts on the forum, not only for my answers, but for everyone!

  • How copy/add a shade of Illustrator CS4 Illustrator CC?

    I use diagonal wavy lines to fill some hardwood profiles for an online catalog of molding, but cannot find this nuance in Illustrator CC. Can anyone provide instructions on how I can add to my library of shades CC?

    Open the new Document profile that you use most and just add an object with the filling of the desired model. It should be added to the Swatch Group. Then save the file. New Document profiles can be found in your user account.

  • How to print "selected objects" in InDesign CS4?

    I have a great calendar in ID CS4. I want to print and display some of the text in its actual size. My printer can print A4. How to print only the objects in its real size in this application and selected texts?

    Copy and paste the text into another A4 size document (IDCS4) would do it, but there is no native support "print selection" but Microsoft ' Word' has. "

    I see not layers much help if the problem is that the printer does not have a large enough sheet, but it can be: http://indesignsecrets.com/free-layout-zones-add-on-is-incredible-productivity-tool.php

  • How to add fonts in Adobe Illustrator CS4

    I use a pc and you use windows vista to an operating system.

    I just put a word in adobe illustrator cs4 and fat document italic is not available for some reason garamound.

    How would I go about adding these fonts in illustrator?

    If you want to add fonts to any program in windows install you from the police records, or if you want them availble for only Adobe programs, coppy to common communs\Adobe\Fonts

    And I'll echo Dov on accounting in the Illustrator forum.

  • Where is the small icon "add a line" in Dreamweaver CS4?

    I hope that's not too dumb of a question. I look around first.

    The Dreamweaver before I was using had a small icon in the info bar to insert a new row into a table (faster than edit/table/insert a line for those of us who keep forget the keyboard shortcut).

    How can I get this same icon visible in CS4?

    It is in the Layout tab.

    PZ

  • How to add a line in a list of control number?

    I've created a checklist in number and the model come with 27 lines automatically. I have now completed in each of them and need more lines, as my list grows. However, when I right click, options to add lines Above/Below are faded. Why I can't use them? Is there a limit or have I missed something?

    Hi dorotkab,

    You probably have a filter applied. Remove the filter and you should be able to add lines.

    Another way to add lines is drag the '=' at the bottom left.

    Quinn

  • How to add a line empty

    Hello

    I know this is very basic, I ask, but I'm going crazy trying to find it.

    I want to draw a blank line between to LabelFieds.

    Something like:

    Label1

    Label2.

    I know there is a function that does this, but I can't remember it and I am not able to find it in google.

    Thank you!

    VFM. Add (new SeparatorField (Field.NON_FOCUSABLE));

  • How to add a line break in the message

    Hello

    I want to add a new line in the message.

    So, it looks like this.

    Test: line1

    Line2

    This message is based on the element of text field that is returned by a stored procedure.

    I tried with Chr (10), too. Nothing works. Can someone help me with this?

    https://Apex.Oracle.com/pls/Apex/f?p=9086:10

    My problem was
    has been printed as it is somehow.

    This problem is fixed inside the stored procedure as below.

    apex_application.g_print_success_message is capable of printing at the APEX.

    Thanks to all who have helped me on this.

    p_result: = ' ERROR: failed to update Bugno ' | v_bugno |', question ID ' | p_issue_id | »
    '|| SQLERRM;

    apex_application.g_print_success_message: = p_result;

Maybe you are looking for

  • 15 - ac184tu: need driver for 15-ac184tu Windows 8 wireless

    Hi, I need driver Wireless for 15-ac184tu for 64-bit Windows 8. I tried to search but only Windows 7 and Windows 10 drivers are available. In addition, please let me know if there is a button to enable wireless switch on this laptop that I could find

  • How to open an ODT file

    I have a coverletter I recorded on my desk.  I have a symbol of the internet by him, not a verbal symbol she.  I can't open this letter. It is said that it is an ODT file.

  • Pavilion dm1 laptop: pavilion dm1 power on password issue

    I have not used this laptop alternative for awhile. I got "enter the password administrator or power on password". I don't remember adding any password for this laptop at home. After 3 attempts, I get the error code "52837953 system off. Would apprec

  • On Windows 7 Pro, Virtual Windows XP Mode, Visual Studio 2003 - debugger runtime error

    On a new PC from HP Pavilion HPE h8-1010: I implemented a Virtualzed PC, Windows XP, SP3 and installed Visual Studio 2002, 2003 and 2005.  I failed select set this computer for Web host site.  However, I then install IIS and was able to load a versio

  • Relations reapper after adding another table

    HelloI have a problem that after using the option to hide some of the stranger, they keys reapper after making a few changes on the diagram (addition of a new table). More specific: on the schema relationship, there are many references to the table T