Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RTF control - use of a memo field / detect change
Message
From
17/06/2008 19:48:47
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01324620
Message ID:
01324980
Views:
15
Hi Sergey

Thanks for the information.

Can I ask a related question: In the VFP9 sample for RTF, they set the control source to a memo field. But they also do this:

Before they move the record pointer, in vcr1.beforeRecordPointerMoved(), they have:
REPLACE rtf.Source WITH THISFORM.oleRTF.TextRTF
I don't know why they do this. Is it required?

Also, they use THISFORM.cText, for example, in vcr1.RecordPointerMoved():
THISFORM.cText = rtf.source
I am assuming from your comments that it is unnecessary to implement THISFORM.cText for RTF and memo fields.

Thanks
Cyril

>Hi Cyril,
>
>You can bind RTF control to a memo field. The text in the help is leftover from VFP5 days where it was true.
>There's no property that will tell you if the contents of the RTF control have changed. You can access the contents of the RTF control through TextRTF property.
>
>>I have set the control source for an RTF control on a form to a memo field and it seems to works OK.
>>
>>The help on the RTF control says you can set the ControlSource of a RichText control directly to a character field, but not a memo field.
>>
>>Is the Help file wrong, or am I looking for trouble?
>>
>>
>>
>>Also, for an RTF control, is there a property that one can test to see if the contents of the RTF control have changed?
>>
>>
>>
>>(Using VFP7 and VFP9).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform