[fpc-devel] Streaming readonly properties

2006-12-12 Thread vsnijders
As said in an earlier mail I have problems streaming the property EditLabel: TBoundLabel read FEditLabel; of a TLabeledEdit with fpc 2.1.1. Some discussion on #fpc led to the conclusion that streaming a readonly persistant should be allowed, because you write to the properties of the readonly p

Re: [fpc-devel] streaming readonly properties

2006-12-11 Thread Vincent Snijders
Aleš Katona schreef: Hi, I recently changed TReader and TWriter to be delphi compatible (they were missing a virtual "read" and a virtual "write". It might be related, best idea is to see if all TWriter/TReader descendants which add "read" and "write" have them use override. As for the concrete

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Michael Van Canneyt
On Tue, 12 Dec 2006, [EMAIL PROTECTED] wrote: > As said in an earlier mail I have problems streaming the > property EditLabel: TBoundLabel read FEditLabel; > of a TLabeledEdit with fpc 2.1.1. > > Some discussion on #fpc led to the conclusion that streaming a readonly > persistant should be al

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Vincent Snijders
Michael Van Canneyt schreef: On Tue, 12 Dec 2006, [EMAIL PROTECTED] wrote: As said in an earlier mail I have problems streaming the property EditLabel: TBoundLabel read FEditLabel; of a TLabeledEdit with fpc 2.1.1. Some discussion on #fpc led to the conclusion that streaming a readonly pers

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Michael Van Canneyt
On Wed, 13 Dec 2006, Vincent Snijders wrote: > Michael Van Canneyt schreef: > > > > On Tue, 12 Dec 2006, [EMAIL PROTECTED] wrote: > > > > > As said in an earlier mail I have problems streaming the property > > > EditLabel: TBoundLabel read FEditLabel; > > > of a TLabeledEdit with fpc 2.1.1. >

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Vincent Snijders
Michael Van Canneyt schreef: On Wed, 13 Dec 2006, Vincent Snijders wrote: Michael Van Canneyt schreef: On Tue, 12 Dec 2006, [EMAIL PROTECTED] wrote: As said in an earlier mail I have problems streaming the property EditLabel: TBoundLabel read FEditLabel; of a TLabeledEdit with fpc 2.1.1. S

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Michael Van Canneyt
On Wed, 13 Dec 2006, Vincent Snijders wrote: > Michael Van Canneyt schreef: > > > > On Wed, 13 Dec 2006, Vincent Snijders wrote: > > > > > Michael Van Canneyt schreef: > > > > On Tue, 12 Dec 2006, [EMAIL PROTECTED] wrote: > > > > > > > > > As said in an earlier mail I have problems streaming t

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Vincent Snijders
Michael Van Canneyt schreef: On Wed, 13 Dec 2006, Vincent Snijders wrote: Michael Van Canneyt schreef: On Wed, 13 Dec 2006, Vincent Snijders wrote: Michael Van Canneyt schreef: On Tue, 12 Dec 2006, [EMAIL PROTECTED] wrote: As said in an earlier mail I have problems streaming the property

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Vincent Snijders
Michael Van Canneyt schreef: Should I amend to patch to allow streaming properties of readonly subcomponents? Yes, please do. It should be quite like the check you made before... Next attempt, see attached patch. Vincent Index: writer.inc

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Michael Van Canneyt
On Wed, 13 Dec 2006, Vincent Snijders wrote: > Michael Van Canneyt schreef: > > > > On Wed, 13 Dec 2006, Vincent Snijders wrote: > > > > > Michael Van Canneyt schreef: > > > > On Wed, 13 Dec 2006, Vincent Snijders wrote: > > > > > > > > > Michael Van Canneyt schreef: > > > > > > On Tue, 12 Dec

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Martin Schreiber
On Tuesday 12 December 2006 14.54, [EMAIL PROTECTED] wrote: > As said in an earlier mail I have problems streaming the > property EditLabel: TBoundLabel read FEditLabel; > of a TLabeledEdit with fpc 2.1.1. > A usual solution: ttestcomp = class(tcomponent) private fsubcomponent: ttestsubcomp

Re: [fpc-devel] Streaming readonly properties

2006-12-13 Thread Vincent Snijders
Martin Schreiber schreef: On Tuesday 12 December 2006 14.54, [EMAIL PROTECTED] wrote: As said in an earlier mail I have problems streaming the property EditLabel: TBoundLabel read FEditLabel; of a TLabeledEdit with fpc 2.1.1. A usual solution: ttestcomp = class(tcomponent) private fsub

Re: [fpc-devel] Streaming readonly properties

2006-12-14 Thread Martin Schreiber
On Thursday 14 December 2006 08.54, Vincent Snijders wrote: > > > > procedure ttestcomp.setsubcomponent(const avalue: ttestsubcomponent); > > begin > > fsubcomponent.assign(avalue); > > end; > > The problem with this solution, is the "write setsubcomponent;" part of the > declaration. > > I don't

Re: [fpc-devel] Streaming readonly properties

2006-12-14 Thread Vincent Snijders
Martin Schreiber schreef: On Thursday 14 December 2006 08.54, Vincent Snijders wrote: procedure ttestcomp.setsubcomponent(const avalue: ttestsubcomponent); begin fsubcomponent.assign(avalue); end; The problem with this solution, is the "write setsubcomponent;" part of the declaration. I don't