Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
27. Feb 2010
:D
I'm talking about Layer variable:
var
Layer: TCustomFilterLayer;
Before editor open and in editor constructor typecasted on TBrightnessAdjustmentLayer:
TBrightnessAdjustmentLayer(Layer).Amount
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
27. Feb 2010
But
with TBrightnessLayerEditor.Create(Layer) do
isn't Layer constructor, TBrightnessLayerEditor is just window.
In this case is also created next Layer instance?
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
27. Feb 2010
Why here is created new obj? In this form constructor is reintroduced and assigning parameter to private filed. So, how to change it to do not make new obj and just work on existing one?
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
27. Feb 2010
Where I create 2nd object? T*Editor is just descendant of TForm (it's more complicated structure, but base class for any editor is TForm) where I have controls to edit layer ;)
I did that I set values in editor contructor.
But I still don't understand why this value is zero? Before constructor is ok, in constructor is ok, after constructor is not ok... (only this field is bad, fields from...
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
26. Feb 2010
When I click on list item should be open editor for object stored in this item.
Window is opening, but field in stored object don't have values setted early, but default form their class constructor.
In oder word I wanna edit object stored in list items.
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
26. Feb 2010
var
Index: Integer;
Layer: TCustomFilterLayer;
begin
Index := lbLayers.ItemIndex;
if Index <> - 1 then
begin
if lbLayers.Items.Objects is TCustomFilterLayer then
begin