According to the Parameter hints in Delphi 11.1 the MessageDlg should support custom button names defined in an array of strings in the last parameter.
e.g.
I cannot get this to work. I declared a constant 3 element array of string but the compiler claims there is no overloaded version of MessageDlg with this format.
Can anyone show me how this should work or is it an error in the parameter help.
MessageDlg
also works:MessageDlg('Where do you want to go today?', TMsgDlgType.mtCustom, mbOKCancel, 0, TMsgDlgBtn.mbOK, ['Redmond', 'New York'])