I’d like to draw a piece of TEdit.Text using Font.Color different from the default. Are there any examples how to do that?
I’m attempting to do something like this:

NOTE: what this screenshot pictures is merely a hairy draft, but it convinces me what problem solvable.
Editcontrols do not have owner-draw support, but you can custom-draw it by sub-classing it and handlingWM_PAINT(among many other messages). It’s doable, but it would be a world of pain to actually implement 100% correctly. From the docs: Developing Custom Draw Controls in Visual C++:I was also interested to find out how deep the rabbit hole goes, so,
Here is a code sample using an interposer class (still needs to implement selection but the custom drawing works when the caret is in the control):