Page 1 of 1

Symbol insertion in richedit

Posted: Tue Jun 05, 2018 12:27 pm
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 ?

Re: Symbol insertion in richedit

Posted: Tue Jun 05, 2018 10:51 pm
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 )