• Shows standard message dialog.

    Parameters

    • msg: string

      Text of the message.

    • dlgType: string

      Message dialog type: 'warning', 'error', 'information', 'confirmation' or 'help'

    • buttons: any

      Array of buttons. Each button could be defined by its string ID or by object (Buttons.addBtn | for structure see parameter params of addBtn method)
      Possible button id's: 'btnYes', 'btnNo', 'btnOK', 'btnCancel', 'btnAbort', 'btnRetry', 'btnIgnore', 'btnAll', 'btnNoToAll', 'btnYesToAll', 'btnHelp', 'btnClose' or some custom.

    • params: any

      Object with other params. Possible attributes:
      title: window caption.
      defaultButton: id of default button.
      chbCaption: caption of checkbox.
      checked: initial state of checkbox.

    • cbk: any

      Callback function, that receives the result value (object with buttonID and checked attributes).

    Returns void

    Example

    messageDlg('Some message.', 'information', ['btnOK', 'btnCancel', {btnID:'btnHelp', caption:'Custom help'}], 'btnOK', function (result) {
    alert("Result received: " + result);
    });