Link to home
Start Free TrialLog in
Avatar of panJames
panJames

asked on

TRichEdit, Delphi, two colors in one line

Hello experts,

I know how to add red line into TRichEdit:

RichEdit1.SelAttributes.Color := clRed;
RichEdit1.SelAttributes.Style := [fsBold];
RichEdit1.Lines.Add('xxx');

but how can I add line 'xxx' where first 'x' is green, second is 'yellow' and third one is 'pink'?

Thank you

panJames
ASKER CERTIFIED SOLUTION
Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial