Am 26.01.2012 11:16, schrieb Koenraad Lelong:
What I have :
if MessageDlg('Attention', 'Data does exist, overwrite ?', mtWarning,[mbNo, mbYes],0) = mrYes then ...

I would like the mbNo to be the default button.

Hi,

you can use:

MessageDlg('Attention', 'Data does exist, overwrite ?', mtWarning,[mbNo, mbYes],0, mbNo)

The 6th parameter defines the default button.

Ingo

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to