[DUG] Color in RichEdit

Xander (GMail) xandervdm at gmail.com
Wed Feb 10 10:47:25 NZDT 2010


You might be better off to use a syntax highlight edit component like
http://synedit.sourceforge.net <http://synedit.sourceforge.net/>  and write
a template to highlight for your syntax.

 

Hope that helps.

 

Cheers

 

 

  _____  

From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Marshland Engineering
Sent: Wednesday, February 10, 2010 10:38 AM
To: delphi at delphi.org.nz
Subject: [DUG] Color in RichEdit

 

I have 9 quite a complicated hex to human readable routines.

 

I'm trying to improve the readability of the data by colors.

 

How can I imbed color commands in a concatenated string 'before' I add the
line of data to the RichEdit component?

 

Data 

 

R2500C5001000000030489FFE13DFCA9001A24EA81001A24EAA1001A24EA81001A24EAA1FFE5
DB1691FFE13DFCB1FFE5DB16F900031367D9FFE4516340004F004F1200000000410000000010
00189B367FD900

 

Decoded 

Poly Tool 1-89 RT CCW X1 -20.00-A9 Y1 17.00-81 X2 17.00-A1 Y2 17.00-81 X3
17.00-A1 Y3 -17.00-91 X4 -20.00-B1 Y4 -17.00-F9 Z Rapid 2.00-D9 Z End
-18.00-40 XY Feed 200.66 Z Feed-200.66-12 XXX 0.00-41 XXX 0.00-10 XXX
16.00-7F

 

I'm hoping to change the -XX to another color which would make it much
easier to read.

 

I can do this within the richedit box, but it's messy and any time I change
the decode code, I'll have to change the color routines. as well.

 

Much easier to decode and change color at the same time.

 

Thanks Wallace

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100210/40e26dc3/attachment.html 


More information about the Delphi mailing list