Solved

create a warning popup when you hit a button

Posted on 2006-07-06
1
180 Views
Last Modified: 2010-04-04
This is probably very easy to do but I just started with Delphi and don't really know my way around yet.  

I want something to popup when the user clicks a button similar to a prompt in JavaScript.  I want the popup to display some text of my choosing like "do you want to continue" and two choices probably yes or no.  Is there a built in component for this?
0
Comment
Question by:ICPooreman
1 Comment
 
LVL 28

Accepted Solution

by:
2266180 earned 50 total points
ID: 17051418
if messagedlg('do you want to continue',mtconfirmation,[mbyes,mbno],0)=mryes then
  // yes selected
else
// no selected
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mobile Keyboard covers the display of the TMemo 3 96
Performance of SQL statement 37 127
SUM 2 INTEGER ARRAYS INTO 1 10 108
Firemonkey allowing RTL on android 6 47
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question