Da MessageDlg auch nur eine Funktion ist weist du den Funktionswert einfach einer Variablen zu und fragst sie danach ab:
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
| var ClickedBtn: Word; begin ClickedBtn := MessageDlg('Test Abfrage, bitte wählen', mtConfirmation, [mbAbort, mbYes, mbNo], 0); if ClickedBtn = id_yes then showmessage('Yes.'); if ClickedBtn = id_no then showmessage('No.'); if ClickedBtn = id_abort then showmessage('Abort.'); |
mfg
GSE
_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)