Re: [fpc-pascal] csLoading and Create

2009-01-15 Thread Martin Friebe
Graeme Geldenhuys wrote: On Wed, Jan 14, 2009 at 3:25 PM, Martin Friebe wrote: Is this supposed to be like this? How else can I inside Create check if the component is loaded from a stream? Could you not use the AfterConstruction() method? Or is that still to early (before ComponentS

Re: [fpc-pascal] csLoading and Create

2009-01-15 Thread Graeme Geldenhuys
On Wed, Jan 14, 2009 at 3:25 PM, Martin Friebe wrote: > > Is this supposed to be like this? How else can I inside Create check if the > component is loaded from a stream? Could you not use the AfterConstruction() method? Or is that still to early (before ComponentState is set)? Regards, - Gr

Re: [fpc-pascal] csLoading and Create

2009-01-14 Thread Martin Friebe
Michael Van Canneyt wrote: On Wed, 14 Jan 2009, Martin Friebe wrote: Hi, If a component is loaded from a stream, then csLoading is set in ComponentState (or so I thought I understood the concept) So in my component i do "if not(csLoading in componentState)" ... However I found this does no

Re: [fpc-pascal] csLoading and Create

2009-01-14 Thread Michael Van Canneyt
On Wed, 14 Jan 2009, Martin Friebe wrote: > Hi, > > If a component is loaded from a stream, then csLoading is set in > ComponentState (or so I thought I understood the concept) > So in my component i do "if not(csLoading in componentState)" ... > > However I found this does not work in the co

[fpc-pascal] csLoading and Create

2009-01-14 Thread Martin Friebe
Hi, If a component is loaded from a stream, then csLoading is set in ComponentState (or so I thought I understood the concept) So in my component i do "if not(csLoading in componentState)" ... However I found this does not work in the constructor Create. csLoading is only set *after* the Co

Re: [fpc-pascal] csLoading

2008-07-10 Thread Vincent Snijders
Vincent Snijders schreef: Martin Schreiber schreef: You could check csLoading of the AOwner parameter. Thanks. That is a good suggestion. I'll use it if nothing better comes up. This was simple enough. I used it in r15730 of Lazarus. Thanks. Vincent ___

Re: [fpc-pascal] csLoading

2008-07-09 Thread Vincent Snijders
Martin Schreiber schreef: On Wednesday 09 July 2008 23.24:31 Vincent Snijders wrote: Hi, This is sequel to this thread of almost two years ago: http://lists.freepascal.org/lists/fpc-devel/2006-September/008737.html Some things changed (e.g. TComponent.Loading has been added), but I stil did no

Re: [fpc-pascal] csLoading

2008-07-09 Thread Martin Schreiber
On Wednesday 09 July 2008 23.24:31 Vincent Snijders wrote: > Hi, > > This is sequel to this thread of almost two years ago: > http://lists.freepascal.org/lists/fpc-devel/2006-September/008737.html > > Some things changed (e.g. TComponent.Loading has been added), but I stil > did not find an easy wa

Re: [fpc-pascal] csLoading

2008-07-09 Thread Graeme Geldenhuys
2008/7/9 Vincent Snijders <[EMAIL PROTECTED]>: > Secondly, why isn't TComponent.Loading called to set the csLoading flag? That would make sense and be more consistent. I think it might have been a oversight when TComponent.Loading was implemented. > IIRC Graeme just needed it protected so he co

[fpc-pascal] csLoading

2008-07-09 Thread Vincent Snijders
Hi, This is sequel to this thread of almost two years ago: http://lists.freepascal.org/lists/fpc-devel/2006-September/008737.html Some things changed (e.g. TComponent.Loading has been added), but I stil did not find an easy way to fix lazarus bug 7305. Looking at TReader.ReadComponent I hav