Autor Beitrag
Psyko²k
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Do 07.04.05 18:34 
Hi at all!

Hab wieder mal ne Frage.

Ich möchte das wenn man auf einen Button Klickt, erst eine "Sind sie sicher?" Abfrage mit Ja Nein kommt, und erst wenn man Ja klickt soll die aktion passieren. bei nein soll sie nicht getan werden.

danke für jede hilfe

greets
maveric
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 54


D7
BeitragVerfasst: Do 07.04.05 18:38 
neue Form erstellen

oder 2ten button drüber legen und dann mit property visible arbeiten ....

_________________
s´Leben ist kein Ponyhof...
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Do 07.04.05 18:41 
Hallo,

in der Delphi-Hilfe >> MessageDlg, dort ist auch ein Beispiel.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
MisterBum83
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 245
Erhaltene Danke: 2

WIN XP
Delphi 6
BeitragVerfasst: Do 07.04.05 18:48 
@ maveric
Was erzählst du da?


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.Button1Click(Sender: TObject);
begin
if MessageDlg('Wirklich beenden?', mtInformation, [mbYes, mbNo], 0)= mrYes then
 //beenden
else
 //nix machen
end;


Moderiert von user profile iconChristian S.: Code- durch Delphi-Tags ersetzt.