[fpc-devel] TComponent has no Loading() method

Michael Van Canneyt michael at freepascal.org
Mon Dec 10 10:13:52 CET 2007



On Mon, 10 Dec 2007, Graeme Geldenhuys wrote:

> Hi,
> 
> Just like we have the following methods to manage csUpdating in ComponentState
> 
>     procedure Updating; dynamic;
>     procedure Updated; dynamic;
> 
> 
> we only have Loaded() in TComponent (excluding csLoading).  Can't we
> have a Loading() method as well so we can insert csLoading in
> ComponentState?
> 
> I need to 'include' csLoading in the ComponentState in a descendant
> TComponent class, but apparently it's not possible because
> FComponentState is private and the ComponentState property is
> Read-Only.

You're not supposed to set loading. Loading should only be set when reading
components from stream.

Michael.



More information about the fpc-devel mailing list