Re: [fpc-devel] Reading empty collection from stream

2006-09-11 Thread Micha Nelissen
Michael Van Canneyt wrote: >>> Note, if I remove the 'Keystrokes = <>' line from the lfm, I will get >>> the default collection too, so I wonder why there are two ways to get >>> the default collection. >> >> I propose to remove the "if not EndOfList then Collection.Clear;" line. > > You may not,

Re: [fpc-devel] Reading empty collection from stream

2006-09-11 Thread Marc Weustink
Marc Weustink wrote: Michael Van Canneyt wrote: On Thu, 7 Sep 2006, Marc Weustink wrote: Vincent Snijders wrote: Hi, I am investigating Lazarus issue 7305. The TSynEdit class has a KeyStrokes property of the type TSynEditKeyStrokes, which is a TCollection descendant. The TSynEdit constru

Re: [fpc-devel] Reading empty collection from stream

2006-09-11 Thread Marc Weustink
Michael Van Canneyt wrote: On Thu, 7 Sep 2006, Marc Weustink wrote: Vincent Snijders wrote: Hi, I am investigating Lazarus issue 7305. The TSynEdit class has a KeyStrokes property of the type TSynEditKeyStrokes, which is a TCollection descendant. The TSynEdit constructor fills the collect

Re: [fpc-devel] Reading empty collection from stream

2006-09-11 Thread Michael Van Canneyt
On Thu, 7 Sep 2006, Marc Weustink wrote: Vincent Snijders wrote: Hi, I am investigating Lazarus issue 7305. The TSynEdit class has a KeyStrokes property of the type TSynEditKeyStrokes, which is a TCollection descendant. The TSynEdit constructor fills the collection with some default items.

Re: [fpc-devel] Reading empty collection from stream

2006-09-08 Thread Flávio Etrusco
Agreed, this is one of the weird Delphi misfeatures... In later SynEdit versions I implemented custom streameing functions which only store the "diff" from default keystrokes (i.e. the removed and added keystrokes compared to the default list). -Flávio On 9/7/06, Marc Weustink <[EMAIL PROTECTED

Re: [fpc-devel] Reading empty collection from stream

2006-09-07 Thread Marc Weustink
Vincent Snijders wrote: Hi, I am investigating Lazarus issue 7305. The TSynEdit class has a KeyStrokes property of the type TSynEditKeyStrokes, which is a TCollection descendant. The TSynEdit constructor fills the collection with some default items. If I remove the items and stream the TSynEd

[fpc-devel] Reading empty collection from stream

2006-08-27 Thread Vincent Snijders
Hi, I am investigating Lazarus issue 7305. The TSynEdit class has a KeyStrokes property of the type TSynEditKeyStrokes, which is a TCollection descendant. The TSynEdit constructor fills the collection with some default items. If I remove the items and stream the TSynEdit, the following line i