mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:09:21 +02:00
fixed unintialized value for escape and default on msg dialogs
git-svn-id: trunk@9759 -
This commit is contained in:
parent
358af7d5d7
commit
ed5392befa
@ -60,10 +60,14 @@ begin
|
||||
Result := mrAll
|
||||
else
|
||||
If mbYesToAll in Buttons then
|
||||
Result := mrYesToAll;
|
||||
Result := mrYesToAll
|
||||
else
|
||||
Result:=mrCancel;
|
||||
end;
|
||||
|
||||
Function ModalDefaultButton(Buttons : TMsgDlgButtons) : TMsgDlgbtn;
|
||||
var
|
||||
b: TMsgDlgBtn;
|
||||
begin
|
||||
If mbYes in Buttons then
|
||||
Result := mbYes
|
||||
@ -93,7 +97,12 @@ begin
|
||||
Result := mbAbort
|
||||
else
|
||||
If mbIgnore in Buttons then
|
||||
Result := mbIgnore;
|
||||
Result := mbIgnore
|
||||
else begin
|
||||
for b:=Low(TMsgDlgBtn) to High(TMsgDlgBtn) do
|
||||
if b in Buttons then
|
||||
Result:=b;
|
||||
end;
|
||||
end;
|
||||
|
||||
const
|
||||
|
Loading…
Reference in New Issue
Block a user