0 Replies Latest reply on Oct 16, 2012 3:02 PM by Jump_Over

    text variable and horizontalOffset

    Jump_Over Level 5

      Hi,

       

      Have a question and can't find an answer;

       

      This is about .horizontalOffset and .endHorizontalOffset properties of text in which some text variable or specialCharacter (say, automated page number) is used.

       

      How to get real horizontal position in this case?

       

      If text is left aligned - inserting tabulator behind text variable gives correct value of  .insertionPoints[-2].endHorizontalOffset

      but if there is some text typed (or not) - .insertionPoints[-1].endHorizontalOffset gives the value with mistake as big as long variable's real text is.

      If text is right aligned - I couldn't find any solution...

       

      I have to find real horiOffset of variable to set a relation to, but how to get it?

       

      Advise, pls