Symbol insertion in richedit

Symbol insertion in richedit

Postby Natter » 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 ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Symbol insertion in richedit

Postby cnavarro » Tue Jun 05, 2018 10:51 pm

Try with

Code: Select all  Expand view  RUN

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: cmsoft and 29 guests