trichview.com

trichview.support




Re: Emergency! SOS!


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/06/2004 14:09:46


Yes, you need to be very careful if you use the same TRVStyle for different

TRichViews.

1) You cannot use DeleteUnusedStyles method - it deletes styles that are not

used by one of TRichViews, but it can be used by others.

2) You cannot use LoadRVF and LoadRVFFromStream if RVFParaStylesReadMode

and/or RVFTextStylesReadMode are equal to rvf_sInsertMap or

rvf_sInsertMerge.


Generally, (1) + (2) means that you can use common RVStyle only when using a

fixed unchanged set of styles.

If you use operations for modifying formating (that includes adding new

styles), I highly recommend use its own RVStyle for each editor.


Also, right click all your editors in Delphi, choose "Settings" in the

context menu, set "Allow adding styles dynamically". It will solve the

problem with the truncated content.





> i put multi-TRichViewEdit control in one form, and these TRichViewEdit

> control share a TRvStyle.

>

> is this have any problem?

>

> sometimes, i found Modifying the character formatting of any word(ie

change

> to bold, italics, underline, new font), then reopen it, contents well

being

> truncated from modified fromating.

>

>





Powered by ABC Amber Outlook Express Converter