On 26-01-12 11:26, [email protected] wrote:
Do not use Yes/No buttons. Use QuestionDlg and do something like
If QuestionDlg('Attention','Data already exists. What to do',
mtWarning,[mrYes,'Overwrite',mrNo,'Keep existing data'])=mrYes then
This is a better dialog, and allows you to put the 'default' answer as
mrYes.
Michael.
Thanks Micheal,
Rephrasing my question would have done it also, but that QuestionDlg is
more clear, I'm going to use that.
I had never seen that QuestionDlg before.
Koenraad.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus