MessageDlg defualt button
Posted on 2004-08-19
How can I use from other syntaxes of MessageDlg function.
It's first syntax has 4 parameters that works proparely, but other syntaxes (overload) that have more than 4 parapeters don't work!!!
For example in the 6-parapeter that 5th parameter is for defining default button and 6th parameter is for Tbitmap don't work.!!!
this is the example of delphi help, but it doesn't work too!!!
procedure TForm1.Button1Click(Sender: TObject);
if MessageDlg('Welcome to my Delphi application. Exit now?',
mtConfirmation, [mbYes, mbNo], 0, mbYes) = mrYes then
MessageDlg('Exiting the Delphi application.', mtInformation,
[mbOk], 0, mbOk);
Please guide me! Thanks