In Delphi 10.1.2 Berlin, in a Vcl.Dialogs.MessageDlg
function, the DlgType
constants mtInformation
and mtConfirmation
create the same dialog icon. For example:
if Vcl.Dialogs.MessageDlg('Do you really want to remove the selected item?', mtConfirmation, mbOKCancel, 0) = mrOk then
begin
RemoveTheSelectedItem;
end;
if Vcl.Dialogs.MessageDlg('Do you really want to remove the selected item?', mtInformation, mbOKCancel, 0) = mrOk then
begin
RemoveTheSelectedItem;
end;
But shouldn't the DlgType
constant mtConfirmation
display a question mark icon, (as the other DlgType
constants mtWarning
and mtError
create each a different icon)?
How can I get a question mark icon with the DlgType
constant mtConfirmation
?