[fpc-pascal] When loading a TComponent from file, method Loaded fired but method Loading not.
Kiên Nguyễn Tiến Trung
kc97ble at gmail.com
Thu Dec 18 02:51:22 CET 2014
Thank you very much.
2014-12-18 2:52 GMT+07:00 Michael Van Canneyt <michael at freepascal.org>:
>
>
>
> On Wed, 17 Dec 2014, Kiên Nguyễn Tiến Trung wrote:
>
> Could you please explain this problem? I think that Loading method should
>> be called by streaming system.
>>
>>
>>
> This is by design.
>
> The state of a component cannot be manipulated directly.
>
> The csLoading state of a component is set by the reader by accessing the
> private fields of TComponent directly.
> The author of fpGUI wanted to set the csLoading component without using a
> reader.
>
> So the Loading() method was introduced to set csLoading, but it is by
> design not used by the reader.
>
> Michael.
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20141218/f1f06a01/attachment.html>
More information about the fpc-pascal
mailing list