Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-12

When loading a TComponent from file, method Loaded fired but method Loading not.

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Kiên Nguyễn Tiến Trung
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.

Reply by email

Kiên Nguyễn Tiến Trung
to Michael Van Canneyt

Thank you very much.

2014-12-18 2:52 GMT+07:00 Michael Van Canneyt :

Show quoted text 28 lines
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 - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email