1 Reply Latest reply on May 17, 2007 7:45 PM by

    HELP! How to HighLight a line in Textarea?

    szhang8888
      I posted a message few days back, and no one responded, I thought I'll post it again.

      Does anyone know how to highlight a line in textarea component? Basically clicking anywhere inside the textarea will highlight the entire line, as if selecting the line. Same kind of highlighting as in a Tree component, when clicking on a tree node, the tree node is highlighted. Or the datagrid component, when clicking on a cell in the datagrid, the entire row is selected and highlighted.

      thanks.
        • 1. Re: HELP! How to HighLight a line in Textarea?
          under your text area, put a panel, then set up an array of y positions of your text area for each line.

          Then on click of the text area set the y position of the underlying panel to be the closest y to the current mouse position.

          thats the only thing i can think of without splitting your text up into a list or something.