Página 1 de 1

TRichEdit ?

Publicado: Lun Ene 15, 2007 6:56 pm
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()