System.Classes.TComponent.Loaded
Delphi
procedure Loaded; virtual;
C++
virtual void __fastcall Loaded();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | System.Classes.pas System.Classes.hpp |
System.Classes | TComponent |
Description
Initializes the component after the form file has been read into memory.
Do not call the protected Loaded method. The streaming system calls this method after it loads the component's form from a stream.
When the streaming system loads a form or data module from its form file, it first constructs the form component by calling its constructor, then reads its property values from the form file. After reading all the property values for all the components, the streaming system calls the Loaded methods of each component in the order the components were created. This gives the components a chance to initialize any data that depends on the values of other components or other parts of itself.
As implemented in TComponent, Loaded clears the csLoading
flag in the ComponentState property, indicating that the component is no longer loading.