Symbol insertion in richedit

Post Reply
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Symbol insertion in richedit

Post by Natter »

To insert a symbol into richedit, I use the method :InsertRTF. Everything's normal. How can I insert a symbol having a Superscript / Subscript location ?
User avatar
cnavarro
Posts: 6558
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Symbol insertion in richedit

Post by cnavarro »

Try with

Code: Select all | Expand


oRTF:SetSuperInd( .T. ), oRTF:InsertRTF( "H" ), oRTF:SetSuperInd( .F. )
 


It only works if it has a previous character, but it does not work if the previous and subsequent character is blank ( space )
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
Post Reply