TLama

Untitled

Jan 10th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.33 KB | None | 0 0
  1. procedure TForm1.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
  2. begin
  3.   CanClose := False;
  4.   if MessageDlg('Are you sure you want to exit ?', mtConfirmation, [mbYes, mbNo], 0) = mrYes then
  5.     if MessageDlg('Are you sure you were sure before :) ?', mtConfirmation, [mbYes, mbNo], 0) = mrYes then
  6.       CanClose := True;
  7. end;
Advertisement
Add Comment
Please, Sign In to add comment