FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Symbol insertion in richedit
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Symbol insertion in richedit
Posted: Tue Jun 05, 2018 12:27 PM

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 ?

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Symbol insertion in richedit
Posted: Tue Jun 05, 2018 10:51 PM
Try with

Code (fw): Select all Collapse
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

Continue the discussion