trichview.support
Re: A few questions |
Author |
Message |
David Novo |
Posted: 01/23/2005 3:05:17 I am not sure about the images, but we also use a single style object and multiple richviews. What we do is NOT stream the textStyles with the richviews, and stream the rvstyle by itself. Then, when loading things back up, I load the rvstyle first, then all the richviews later. It works like a charm and prevents saving redundant font information, which can be quite large. -Dave Alexander Adam wrote: > Hi Sergey, > > I'm saving and loading the content of a RichViewEdit with save/load > rvffromstream. > I save it to a TStringStream and after that, convert the data of this > stringstream with Base64. > Works like a charm but.. first the images are not saved, how to save > 'em into the stream as well? > The background color isn't saved either so how to do that as well? > > And last but not least, I have a global RVStyle class in my mainform > that' I'm reusing a lot. > Now this global RVStyle has a few standard text / para styles that > can be used in every subform. > The problem is that the load / save stream funcs are saving all the > styles into the stream, which is fine for user defined formatting > styles, but not for the global, standard text / parastyles, so what > to do to always use the standard text / para styles even after > reloading but saving the user defined custom styles and loading them? > > thanks, > Alex |
Powered by ABC Amber Outlook Express Converter