In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TRichEdit ?

Xailer professional forum in English
pjmfelix
Mensajes: 61
Registrado: Jue Abr 27, 2006 1:23 pm

TRichEdit ?

Mensaje por pjmfelix »

Hi.
I try to put difrents texts in the RichEdit by the InsertText function, but
don´t work.
All the text stay with the first configuracion.(FontSize, Bold and
Alignment).
The sample:
::oRTF:nFontSize := 16
::oRTF:lBold := .T.
::oRTF:nAlignment := rpCENTER
::oRTF:InsertText("LETTER")
::oRTF:nFontSize := 10
::oRTF:lBold := .F.
::oRTF:nAlignment := rpLEFT
::oRTF:GoToLine(::oRTF:GetLineCount())
::oRTF:InsertText(CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Name " + CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Address " + CRLF + ;
Chr(9) + Chr(9) + Chr(9) + Chr(9) + ;
"Post Code " + CRLF)
::oRTF:GoToLine(::oRTF:GetLineCount())
::oRTF:SetFocus()
Responder