Código
procedure TFprodutos.FormCloseQuery(Sender: TObject; var CanClose: Boolean);
Var
Iconf:Integer;
begin
Iconf := Application.MessageBox('Confirma o encerramento(saida) do sistema ?','CONFIRMAÇÃO',mb_yesNo+mb_iconQuestion+mb_Defbutton2);
if Iconf = IDNO then
CanClose := False;
end;
Planeta Delphi - www.planetadelphi.com.br - Todos os direitos reservados | Copyright 2001-2009