FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Insert symbol to richedit
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Insert symbol to richedit

Posted: Sat Sep 29, 2018 03:52 PM

Hi all !

How can I insert a UTF symbol (虏 or 鲁) in richedit ?

FWH 1806

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: Insert symbol to richedit

Posted: Sat Sep 29, 2018 08:55 PM

Try with ALT + 252 or ALT + 253 ( ascii codes )

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: Insert symbol to richedit

Posted: Sat Sep 29, 2018 09:28 PM

No, so I can't insert unicode symbols

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: Insert symbol to richedit

Posted: Sat Sep 29, 2018 10:44 PM

For example? Which character and which unicode code does it have?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: Insert symbol to richedit

Posted: Sat Sep 29, 2018 10:45 PM

You can also try with
MENUITEM "Character Map" ACTION WaitRun ("Charmap" + ".exe")

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM

Re: Insert symbol to richedit

Posted: Sun Sep 30, 2018 08:45 AM

You can use a clipboard, but I don't know how to buffer the unicode symbol. :SetText(HB_UTF8CHR(178) ) - gives an error

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM

Re: Insert symbol to richedit

Posted: Sun Sep 30, 2018 11:07 AM

I do not understand your problem well and why you can not use ALT + <code>, please explain better.
To insert a character in a text, you can use oRTF: InsertRTF (cText)

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion