trichview.com

trichview.support




Re: problems in DBRichViewEdit and the first line


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/04/2002 22:50:54


> Should two RichViewEdit controls share the same RVStyle? Here's why I

ask...


No, it's not necessary.


But you need to set up some properties. Right click richviewedit in Delphi,

choose "Settings" in the context menu, set mode "Allow adding styles

dynamically". Repeat these steps for all RichViewEdits.

In this mode, styles will be saved and loaded together with RVF documents.

Be careful: in this mode all LoadRVF*** replace styles in RVStyle with

styles from loaded document. InsertRVF*** methods merge two set of styles

(existing styles and styles from document) together.

My example uses InsertRVFFromStream method, so all 3 editor (rve, headerrve,

footerrve) can be linked to different RVStyles.

Moreover, in this mode it's highly recommended to link each editor to its

unique rvstyle.

>

> I have a "Settings" Form that has a header and a footer (RichViewEdit)

> connected to a table, I have on central "editor" in my application that

now

> using the MemoryStreams loads and saves the RTF from various

> RichViewEdits... When I edit the Header, and return to the form (after a

> Save and Load to stream) the text in the Header rve looks good, I post the

> changes and go and use the header in another part of my application,

> everything's still good... But when I exit and reload the application, the

> header text is formatted with a different font and size, etc... it's

always

> the same, no matter what I change it to, it always changes back... after a

> reload...

>

> I was thinking that maybe because both the Header and Footer rve share one

> RVStyle...???

>

> Thanks for any advise!

>

> Jamie

>

>

>





Powered by ABC Amber Outlook Express Converter