10-16-2008, 06:30 PM
In my example, this code sets red text:
Function dlg_rich_text
12 and 20 are red text start and end character indexes. Instead use indexes that you need.
Function dlg_rich_text
,;red text
,cr.cpMin=12
,cr.cpMax=20
,SendMessage(re EM_EXSETSEL 0 &cr)
,cf.dwMask=CFM_COLOR
,cf.crTextColor=0xff
,SendMessage(re EM_SETCHARFORMAT SCF_SELECTION &cf)
12 and 20 are red text start and end character indexes. Instead use indexes that you need.