delphi – 错误的MessageDlg图标与DlgType mtConfirmation常量?
在Delphi 10.1.2 Berlin中,在Vcl.Dialogs.MessageDlg函数中,DlgType常量mtInformation和mtConfirmation创建相同的对话框图标.例如:
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,0) = mrOk then begin RemoveTheSelectedItem; end; 但是DlgType常量mtConfirmation不应该显示问号图标,(因为其他DlgType常量mtWarning和mtError会创建一个不同的图标)? 如何使用DlgType常量mtConfirmation获取问号图标? 解决方法
据说在
help:
所以这段代码: Vcl.Dialogs.UseLatestCommonDialogs := False; if Vcl.Dialogs.MessageDlg('Do you really want to remove the selected item?',0) = mrOk then begin RemoveTheSelectedItem; end; 产生这个结果: (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |