Delphi: How to call a method when i click a control?
- by Ian Boyd
i have a method:
procedure Frob(Sender: TObject);
that i want to call when i click a menu item.
The method comes to me though an interface:
animal: IAnimal;
IAnimal = interface
procedure Frob(Sender: TObject);
end;
The question revolves around what to assign to the OnClick event handler of a menu item (i.e. control):
var
animal:…