Edit event on FormCloseQuery:
TForm1.FormCloseQuery procedure (Sender: TObject; var CanClose: Boolean);
begin
if MessageBox (Handle, 'Get out of the application?', 'Confirmation',
MB_ICONQUESTION MB_YESNO +) = idYes then
CanClose: = True
else
CanClose: = False;
end;
No comments:
Post a Comment