0 Replies Latest reply on May 22, 2007 10:09 PM by hemantbist

    Controlled scrolling in Text area

    hemantbist
      Hi
      Given a particular offset in Textarea.text, I want to scroll the Textarea instance to a vPosition where the word will be displayed. The height, width, fontsize, fonttype for the text area is fixed and it has only plain text associated with it.

      e.g. I want to make sure that word "WORDTOSHOW" is displayed in the visible area of textarea.

      "The quick brown fox jumps over the little lazy dog. WORDTOSHOW. This is a sample text".

      I have tried several heuristics e.g. assuming fixed number of characters in a line but they fail in several test cases.

      HB