> Hello,
> 
> The EM_GETSEL message retrieves the selected text in an edit control, but it
> doesn't tell me where the caret is: it might be at the beginning or at the
> end of the selection. Does anybody know a way to retrieve that information?
> 

Yes Peter, the only places the caret could be is either SelStart or the
end of the selection that you would get by doing this:

  SelEnd := Edit1.SelStart + Edit1.SelLength;



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to