You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
procedure fechar(Sender: TObject; var CloseAction: TCloseAction);
begin
Showmessage( 'Vou fechar' );
end;
procedure exec;
var F: TForm;
begin
F := TForm.Create(NIL);
try
F.OnClose := @fechar;
F.ShowModal;
finally
F.Free;
end;
end;
I'm having trouble getting my code to pass the "Onclose" event of TForm and other classes as well.
The code above opens the form normally, but the event doesn't work and doesn't give an error.
I'm using Lazarus 3.4 and compiling in 64 bit.
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I'm having trouble getting my code to pass the "Onclose" event of TForm and other classes as well.
The code above opens the form normally, but the event doesn't work and doesn't give an error.
I'm using Lazarus 3.4 and compiling in 64 bit.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: