Windows RichEdit messages refer to selection, you don't need to refer to text range. Antônio -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20141110/e0ae69e1/attachment-0003.html>