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