Insert symbol to richedit

Insert symbol to richedit

Postby Natter » Sat Sep 29, 2018 3:52 pm

Hi all !

How can I insert a UTF symbol (² or ³) in richedit ?

FWH 1806
Natter
 
Posts: 1182
Joined: Mon May 14, 2007 9:49 am

Re: Insert symbol to richedit

Postby cnavarro » Sat Sep 29, 2018 8: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
User avatar
cnavarro
 
Posts: 6522
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Insert symbol to richedit

Postby Natter » Sat Sep 29, 2018 9:28 pm

No, so I can't insert unicode symbols
Natter
 
Posts: 1182
Joined: Mon May 14, 2007 9:49 am

Re: Insert symbol to richedit

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6522
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Insert symbol to richedit

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6522
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Insert symbol to richedit

Postby Natter » Sun Sep 30, 2018 8: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
Natter
 
Posts: 1182
Joined: Mon May 14, 2007 9:49 am

Re: Insert symbol to richedit

Postby cnavarro » 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
User avatar
cnavarro
 
Posts: 6522
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 52 guests