You are here: Symbol Reference > JSDialogs Namespace > Functions > JSDialogs.ShowConfirmTitleMessage Function
LMD DialogPack
ContentsIndexHome
PreviousUpNext
JSDialogs.ShowConfirmTitleMessage Function

Wrapper function to display an confirmation message dialog Displays a dialog with a Title and the Confirmation icon visible.

Pascal
function ShowConfirmTitleMessage(const aTitle: TJSString; const aMsg: TJSString; const AConfirm: TMsgDlgBtn = mbOK; const ACancel: TMsgDlgBtn = mbCancel): TModalResult;

JSDialogs

Displays a dialog with the Confirmation icon visible. 

 

By default a confirmation dialog has OK and Cancel buttons visible. When this is the case, the result will either be mrOK or mrCancel. If you change the default buttons by including different TMsgBtn values for either the AConfirm or ACancel parameters, then the result will be the modalresult equivalent of the button value. 

If you pass mbYes and mbNo as AConfirm and ACancel parameters, then the result value will be either mrYes or mrNo.

if ShowConfirmTitleMessage('Close Application', 'Are you sure you want to exit the application?', mbYes, mbNo) = mrOK then
  close;
Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!