Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 09:59

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



"Warnung" Button vorher Einblenden?

Discussion on "Warnung" Button vorher Einblenden? within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 26
The Black Market: 264/0/1
Join Date: Jun 2012
Posts: 7,963
Received Thanks: 1,931
"Warnung" Button vorher Einblenden?

Hey,

brauch emal etwas eure Hilfe, wie erstelle ich so ein "Warn Button"?

Beispielweise;

User XY drückt auf "Liste leeren" davor soll dann erst ein Fenster kommen mit "Ja - Löschen" oder "Nein - Nicht Löschen (Abbrechen)"

Liste Leeren Button sieht so aus:

Code:
begin
  lst1.Clear;
end;
Es ist Delphi
Yeru is offline  
Thanks
1 User
Old 07/03/2012, 16:07   #2
 
elite*gold: 0
Join Date: Jun 2012
Posts: 187
Received Thanks: 58
dialogs (oder nur in delphi XE2 FMX.dialogs bzw. VCL.Dialogs) einbinden.

und dann

Code:
if Dialogs.MessageDlg('Welcome to my Delphi application.  Exit now?',
    mtConfirmation, [mbYes, mbNo], 0, mbYes) = mrYes then
  begin
    Dialogs.MessageDlg('Exiting the Delphi application.', mtInformation,
      [mbOk], 0, mbOk);
    Close;
  end;
tnd0 is offline  
Reply




All times are GMT +1. The time now is 10:00.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.