====== Descrição ====== Função para criar um MessageDlg com um checkbox. ===== Delphi ===== function TfrmVendas.MessageComCheckBox(mensagem :string):boolean; var AMsgDialog : TForm; ACheckBox : TCheckBox; retorno : boolean; begin retorno:=true; AMsgDialog := CreateMessageDialog(#39+mensagem+#39, mtConfirmation, [mbYes, mbNo]); ACheckBox := TCheckBox.Create(AMsgDialog); with AMsgDialog do try Caption := 'Mensagem de aviso!'; Height := 169; with ACheckBox do begin Parent := AMsgDialog; Caption := ''; width := 555; Top := 121; Left := 8; end; if (ShowModal = ID_YES) then begin if ACheckBox.Checked then begin end else begin end; end else if ACheckBox.Checked then begin end else begin end; end; finally result:=retorno; Free; end;