1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23:
| function Entscheidung(Text: string): Integer; const X : integer = 0; Y : integer = 0; var Erg: Word; begin Erg := MsgDlgPos(Text, mtConfirmation, [mbYes, mbNo, mbNoToAll, mbYesToAll], 0, X, Y); Erg := MsgDlgPos('Entscheidung', Text, mtConfirmation, [mbYes, mbNo, mbNoToAll, mbYesToAll], 0, X, Y); Result := Erg; end;
function Frage(Text: string; const Col : TColor = clBtnFace): Boolean; const X : integer = 0; Y : integer = 0; var Erg: Word; begin Erg := MsgDlgPos(Text, mtConfirmation, [mbYes, mbNo, mbNoToAll, mbYesToAll], 0, X, Y); Erg := MsgDlgPos('Frage', Text, mtConfirmation, [mbYes, mbNo], 0, X, Y, Col); Result := (Erg = mrYes); end; |