Hi!
I'm creating a button at runtime and need to set it's onClick event. I've got a function named "Save" that is supposed to run when sombody click's the button.
Kudel
I'm creating a button at runtime and need to set it's onClick event. I've got a function named "Save" that is supposed to run when sombody click's the button.
Code:
with tbutton.Create(Form1) do
begin;
Parent := Form1;
Left := 150;
Top := nyeTop;
Caption := 'Save ' + Ticker;
Name := 'btn' + Ticker;
Visible := True;
onclick := ?????;
end;
Kudel