Autor Beitrag
darksign
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 58



BeitragVerfasst: Mi 14.03.07 07:19 
Hallo!

Ich habe folgenden MessageDlg:

if MessageDlg ('Löschen?', mtCustom, [mbYes, mbNo], 0) = mrYes then
.....

Und wie kann ich das jetzt machen, dass, wenn der Dialog aufgerufen ist, standardmäßig der Button No ausgewählt ist!


mfg


Moderiert von user profile iconmatze: Delphi-Tags hinzugefügt
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: Mi 14.03.07 08:19 
Hallo,

nimm doch die MessageBox:
ausblenden Delphi-Quelltext
1:
2:
if MessageBox(0, 'Datei löschen?', 'Frage', MB_ICONQUESTION or MB_YESNO or MB_DEFBUTTON2) = IDNO then
  //...

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 14.03.07 09:26 
ausblenden Delphi-Quelltext
1:
if MessageDlg ('Löschen?', mtCustom, [mbYes, mbNo], 0,mbNo) = mrNo then...					


Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt