Re: [Lazarus] the protected property TCompressionStream.OnProgress

2009-07-09 Thread 闫程远
Thx! 2009/7/10 Mattias Gaertner > On Fri, 10 Jul 2009 12:38:09 +0800 > 闫程远 wrote: > > > well, that worked. thanks. > > but there's still a problem: > > when i tried to assign a method to the OnProgress property, i got a > > error message: > > > > UCryptForm.pas(100,37) Error: Wrong number of pa

Re: [Lazarus] the protected property TCompressionStream.OnProgress

2009-07-09 Thread Mattias Gaertner
On Fri, 10 Jul 2009 12:38:09 +0800 闫程远 wrote: > well, that worked. thanks. > but there's still a problem: > when i tried to assign a method to the OnProgress property, i got a > error message: > > UCryptForm.pas(100,37) Error: Wrong number of parameters specified > for call to "CsOnprogress" > U

Re: [Lazarus] the protected property TCompressionStream.OnProgress

2009-07-09 Thread 闫程远
well, that worked. thanks. but there's still a problem: when i tried to assign a method to the OnProgress property, i got a error message: UCryptForm.pas(100,37) Error: Wrong number of parameters specified for call to "CsOnprogress" UCryptForm.pas(59,22) Hint: Found declaration: TCryptForm.CsOnpro

Re: [Lazarus] the protected property TCompressionStream.OnProgress

2009-07-09 Thread Antônio
Well, you could derive a class and publish the property. Antônio 2009/7/10 闫程远 > Hi all! > i wanted to compress a file using TCompressionStream, with a progressbar to > show the progress. > i wrote the code but they got Compilation Error: > > var > fs,ms:TMemoryStream; > cs:TCompressionStre

[Lazarus] the protected property TCompressionStream.OnProgress

2009-07-09 Thread 闫程远
Hi all! i wanted to compress a file using TCompressionStream, with a progressbar to show the progress. i wrote the code but they got Compilation Error: var fs,ms:TMemoryStream; cs:TCompressionStream; size:int64; begin fs:=TMemoryStream.Create; fs.LoadFromFile(SourceFile.Text); size:=fs