Using Vista and VFP 9, your code works. Fox is in red.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Tracy Pearson
Sent: Wednesday, October 13, 2010 8:40 AM
To: [email protected]
Subject: RE: RTF control
Allen wrote on 2010-10-13:
> Hi foxgang
> Has anyone managed to use the RTF control and in code change the
> colour of the text. I'm using textrtf to transfer the text to the
> control but want some text in red Al
>
Allen,
oForm = CREATEOBJECT("form")
oForm.AddObject("rtf", "olecontrol", "richtext.richtextctrl")
oForm.rtf.visible = .T.
oForm.rtf.height = 100
oForm.rtf.width = 200
oForm.rtf.text = "Hello FoxGang!"
oForm.rtf.selstart = 6
oForm.rtf.sellength = 3
oForm.rtf.selcolor = RGB(255,0,0)
oForm.rtf.selstart = 100
oForm.rtf.sellength = 0
oForm.show(1)
Tracy Pearson
PowerChurch Software
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/093d01cb6adf$c5c22f40$51468d...@[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.