To work with MessageDlg command
Step 1
To work with MessageDlg command, first add the Button object in the form.
Step 2
After that, double click the Button and it will display a Code Explore window and then enter the programming inside it.
Step 3
Program:
procedure TForm1.Button1Click(Sender: TObject);
begin
MessageDlg('The document is modify, you want to save it'
,mtConfirmation,mbYesNoCancel,0);
end;
end.
Step 4
Now, you can try to press the F9 to run the program to see the result.
No comments:
Post a Comment