Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

create a warning popup when you hit a button

Posted on 2006-07-06
1
Medium Priority
?
185 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 200 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

876 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