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 20:26:53
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01324620
Message ID:
01324989
Views:
14
Hi Sergey

Q1: Is
REPLACE rtf.Source WITH THISFORM.oleRTF.TextRTF
also unnecessary?

Q2: Also, I want to give the user a choice of using RTF or plain text.

I have a memo field and an RTF control on the page, and in the init() of the form I make one of them visible depending upon a setting in a setup file.

However, that does not work too well. If we use the memo file, we end up with RTF in the memo file. Probably because the control source for both the editbox and the RTF control are set to the same memo field.

Is it possible to tell the RTF control to edit plain text like a memo field? Alternatively, should I have two forms, or is there a way to have both on the same form?

Thanks
Cyril



>>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.
>>
>
>Yes, it is unnecessary.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform