I just noticed that if I do a
MessageDlg('Some ErrorMessage', mtError, [mbOk], 0) ;(so I do not specify a custom caption for the dialog) then the caption of the dialog is the Application.Title, whereas in Delphi (at least in D1 to D3) it depends on the DialogType, so in Delphi the caption of the dialog in my example would be "Error"
I just tested an existing executable, compiled with a previous version of Lazarus, and this code:
MessageDlg(Format(msgSourceDirNotFound,
[ExcludeTrailingPathDelimiter(SourceEdit.Text)]),
mtError, [mbOk], 0);will bring up a Dialog with "Error" as the caption.
I'm using Lazarus from SVN revision 16824.
Is this new behaviour by design (which would force me to rewrite almost all my projects to use the MessageDlg(aMsg, aTitle, DlgType, Buttons, HelpCtx) format instead), or is it a bug?
Bart
