REdit.Perform(EM_LINEFROMCHAR,REdit.SelStart,0) ;
this will return the line number. There is also a windows message (EM_CHARFROMPOS) that will return the character position from the screen cursor coordinates. Look in the windows help file for more info. Beware that these functions are pretty slow, and should not be used inside of loop that get called a lot.
Delphi tips navigator:
» Enable/Disable Desktop icons
« TColor to HTML color

