Wrapper function to display an confirmation message dialog.
function ShowConfirmMessage(const aMsg: TJSString; const AConfirm: TMsgDlgBtn = mbOK; const ACancel: TMsgDlgBtn = mbCancel): TModalResult;
JSDialogs
Displays a dialog with the Confirmation icon visible.
Has OK and Cancel buttons visible. Function result will either be mrOK or mrCancel.
if ShowConfirmMessage('Are you sure you want to exit the application?') = mrOK then close;
Copyright © 2013 by LMD Innovative. All rights reserved.
|
What do you think about this topic? Send feedback!
|