Hi John,

> Now how do I access the properties of the component I have just added?

You need to type cast to the type of the component you added or one
that declares the properties you want to access publicly.

var
  lComp: TMarcoCombo;
begin
  ...
  lComp := TMacroCombo(mCommands[index]);
  lComp.align := alLeft;
  lComp.ItemIndex := 0;
  ...
end;

cheers,
Jeremy
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to