Solved

create a warning popup when you hit a button

Posted on 2006-07-06
1
181 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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