trichview.com

trichview.support




Re: Text Styles & Save methods


Return to index


Author

Message

Slavi Marinov

Posted: 08/19/2002 20:32:59


No, just simple integers..... Why should they be PChars?

In BestWidth is stored the width in pixels, i.e. if I create a table and

then check its properties, table.bestwidth returns me the new size (in

pixels) while I need the value I had set (for example 33%). That's why in

table.tag i store -33. Why is that a problem?


--Slavi


"Sergey Tkachenko" <[email protected]> wrote in message

news:[email protected]...

> This size is stored in table.BestWidth property.

>

> The most probably the problem is in improper use of tags.

> SaveRVF may crush, if rvoTagsArePChars is in RVE.Options but tags do not

> point to strings.

> How do you assign tags? Do you have rvoTagsArePChars in RVE.Options?

>

>

> > Well, I found the problem... it's not with the size, it's with the

Tags..

> > You see, I use tags of the tables in my program to save the size ( but

the

> > actual size at creation time, for example -50 means that the size of the

> > table has been set to 50%). I do that because the .Width returns me the

> > current size in pixels and not the value I have set. So as I set the tag

> to

> > some value and use that method (

> >   MS:=nil;

> >   try

> >     MS:=TMemoryStream.Create;

> >     RVE.SaveRVFToStream(MS,false); // here is the crash

> >     MS.Position:=0;

> >     SetLength(FRVF,MS.Size);

> >     MS.ReadBuffer(Pointer(FRVF)^, MS.Size);

> >   finally

> >     MS.Free;

> >   end

> > )

> > It crashes. Try it and you will see.

> >

> > --Slavi

> >

> > "Sergey Tkachenko" <[email protected]> wrote in message

> > news:[email protected]...

> > > > BUT about the table.... I do not straightforwardly create a table

> > 2*600(it

> > > > works ok with me, too), but first create a table, for example 2*5

and

> > then

> > > > split vertically some cell to 600 pieces. And then it crashes. By

the

> > way,

> > > > my computer has 192MB RAM.

> > >

> > > I cannot reproduce this problem.

> > > Try to it with exe file compiled with newer version:

> > > http://www.trichview.com/resources/actions/actiontest.zip

> > > (it has a limit on 500 rows when splitting, but you can split twice).

> > >

> > > Or send me a project reproducing problem.

> > >

> > >

> >

> >

>

>





Powered by ABC Amber Outlook Express Converter