Solved

create a warning popup when you hit a button

Posted on 2006-07-06
1
177 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:
ciuly earned 50 total points
Comment Utility
if messagedlg('do you want to continue',mtconfirmation,[mbyes,mbno],0)=mryes then
  // yes selected
else
// no selected
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now