Hi All :)
I have a dialog based application that has a long single line edit control among other things. As the user types in, it should display numbers in one color (blue), some symbols should be in another color (lets say red), and also I have a set of keywords that have ot be in a different color (green). all the rest of the test should be in the default black color.
This task proved to be much more complex than I thought. I tried to write my own CEdit
derived control but it didn't worck as I expected, then I tried CRichEditCtrl
which had all the signs to work but it has that Win2000 style border which looks ugly, since I have other edit controls close to this one and it would look really inappropriate for this particular edit control to have a different border.
I can write a CWnd derived edit control from scratch and attach it to a static control resource without border and draw the border in my OnPaint
, but that solution looks very inelegant and sloppy to me...
Please give me an advise what should I do? :)
Thanks a lot in advance!