Vcl.Dialogs.MsgDlgIcons

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

MsgDlgIcons: array[TMsgDlgType] of TMsgDlgIcon =

C++

extern DELPHI_PACKAGE System::StaticArray<System::Uitypes::TMsgDlgIcon, 5> MsgDlgIcons;

Properties

Type Visibility Source Unit Parent
variable public
Vcl.Dialogs.pas
Vcl.Dialogs.hpp
Vcl.Dialogs Vcl.Dialogs


Description

MsgDlgIcons global variable maps dialog type to dialog icon kind.

It is used by Vcl.Dialogs functions to decide which icon to show. The default mapping is:

MsgDlgIcons: array[TMsgDlgType] of TMsgDlgIcon = (TMsgDlgIcon.mdiWarning, TMsgDlgIcon.mdiError, TMsgDlgIcon.mdiNone, TMsgDlgIcon.mdiNone, TMsgDlgIcon.mdiNone);

For previous versions of icon mapping, use code:

  • 11.2
     MsgDlgIcons[mtInformation] := TMsgDlgIcon.mdiInformation;
     MsgDlgIcons[mtConfirmation] := TMsgDlgIcon.mdiInformation;
  • 11.3
     MsgDlgIcons[mtInformation] := TMsgDlgIcon.mdiInformation;
     MsgDlgIcons[mtConfirmation] := TMsgDlgIcon.mdiWarning;
  • 12.0
     MsgDlgIcons[mtInformation] := TMsgDlgIcon.mdiNone;
     MsgDlgIcons[mtConfirmation] := TMsgDlgIcon.mdiNone;
Note: For more information on the reason behind the 12.0 code change, see the links below:

See Also