Hi Vladimir, thanks for the reply.
> PROCEDURE Init
> m.myfont = "Fixedsys"
> m.mysize = 20
> Thisform.oRtf.oBJECT.SelStart = 0
> Thisform.oRtf.oBJECT.SelLength = LEN(Thisform.orTF.text)
> Thisform.oRtf.oBJECT.SelFontName = m.myfont
> Thisform.oRtf.oBJECT.SelFontSize = m.mysize
> ENDPROC
>
>HTH
This will help to a certain extent, but...
a) I don't want the text highlighted (can I simply do a KEYBOARD '{HOME}' to unselect the text, or is there a 'selectposition' property?)
b) Highlighting the text will enclose the text between RTF tags. Ideally, if the text was originally plain text, I would like it to remain plain (ie. no tags). I was hoping the default font name/size would be for display purposes only, and not affect the text.
c) The above code is for the form.Init method, which only runs once. I guess I would need the code in a user-defined method that would be called each time a new record was displayed.
Do you know where I can get a full list of properties for oRTF.object?
Regards,
Alan