Otto,
You should not inherit from TRichEdit as it seems as that control is not properly
accepting it. I mean: we can not always interfere in the behavior of a standard control.
I modified your example to use a estandard TRichEdit and properly accepted everything