Page 1 of 1

RichViewEdit vs RichView

Posted: Sat Sep 23, 2006 2:25 pm
by Deiv
Hello,
I speak very little English language, for my questions used a translator, this is my first time in the forum:

1. - How can I do that the Component RichViewEdit or RichView cannot be edited? what I need to make is that these components cannot copy (CTRL+C) their contents (text) and then paste for example in a Block of notes with CTRL+V.

2. - I have saved with Microsoft Word a File that contained Text with superimposed graphics (behind the text) in format RTF, but when recovering with:

Code: Select all

RichViewEdit1.InsertRTFFromFileEd ('D:\MyFile.rtf') 

All good one, but the RichViewEdit recovers that file very different to my RTF, that is to say, the RichViewEdit shows me the RTF with a text adjustment Up and Below (of Microsoft Word) in the graph, that is to say text (up) - I draw (below) - text (a lot plus below) and not superimposed, however, I had prepared it behind the text (the superimposed graph). Why doesn't RichViewEdit recover the such RTF and like it is with the text above the graph?

3. - I have tried to load a RTF with RichView after applying the RVStyle, this way:

Code: Select all

RichView1.LoadRTF ('D:\MyFile.rtf') 

But I cannot load the File with this function. How do I load (do I recover) a RTF with RichView?
Thanks

Posted: Sat Sep 23, 2006 2:39 pm
by Sergey Tkachenko
1. TRichView cannot be edited. To disallow editing TRichViewEdit, set RichViewEdit.ReadOnly = True.
To prevent copying from TRichView or TRichViewEdit, exclude all rvoAutoCopy* options from the Options property.
If you want to prevent drag&drop too, include rvoDisallowDrag in the same Options property.

2. I think it's because of property values.
Right click RichViewEdit1 in Delphi, choose "Settings" in popup menu, select "Allow adding styles dynamically" and click OK.

3. Call RichView1.Format after calling LoadRTF.

Posted: Sun Sep 24, 2006 3:25 pm
by Deiv
Hi,
Thank you to respond, your help has been very effective to my questions Nº 1 and Nº 3, I don't have doubts, but now I cannot solve the question Nº 2, I have followed the steps that me you indicated me,
2. I think it's because of property values.
Right click RichViewEdit1 in Delphi, choose "Settings" in popup menu, select "Allow adding styles dynamically" and click OK.
but RichViewEdit recovers even this way the file RTF very different to what I have created.
Do You could to create a file RTF with superimposed graphics (text above the graph), and then to try to recover it with TRichViewEdit? And Do you maybe could this way to understand better my question please?
A greeting

Posted: Sun Sep 24, 2006 8:26 pm
by Sergey Tkachenko
No, TRichView does not support floating images

Posted: Sun Sep 24, 2006 8:44 pm
by Deiv
Thanks,
Maybe in a next version?

Posted: Mon Sep 25, 2006 2:29 pm
by Sergey Tkachenko
May be, but sorry, I cannot promise it