procedure TForm1.Button1Click(Sender: TObject); begin Application.MessageBox('Text', 'Caption', MB_YESNOCANCEL); end;