[Lazarus] MessageDlg default button
Koenraad Lelong
lazarus1 at de-brouwerij.be
Thu Jan 26 11:41:12 CET 2012
On 26-01-12 11:26, michael.vancanneyt at wisa.be 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.
More information about the Lazarus
mailing list