On 10/12/14, Jürgen Hestermann <[email protected]> wrote:

> How can I specify the default button for QuestionDLG?

function QuestionDlg(const aCaption, aMsg: string; DlgType: TMsgDlgType;
            Buttons: array of const; HelpCtx: Longint): TModalResult;

In the Buttons array of const, add the string  'isdefault' after the
button you want to be the default one.

Take a look at the implementation.

Bart

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

Reply via email to