Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find and replace in a RichEdit field
#2
In my example, this code sets red text:

Function dlg_rich_text
Code:
Copy      Help
,;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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)