Forum: Object-Pascal / Delphi-Language
Delphi
by mkinzler,
27. Feb 2010
Yes
TBrightnessLayerEditor.Create(Layer)
creates a new instance of TBrightnessLayerEditor because TBrightnessLayerEditor is a class and not an object!
Forum: Object-Pascal / Delphi-Language
Delphi
by mkinzler,
27. Feb 2010
In Delphi a constructor can be called als "normal" class method. But then you have to call it on an instance! You call it on a class, so the constructor creates a new instance.
Try
Layer.Create(<Params>);
Forum: Object-Pascal / Delphi-Language
Delphi
by mkinzler,
27. Feb 2010
Here you're creating a new instance
with TBrightnessLayerEditor.Create(Layer) do