mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 14:40:31 +02:00
The close OK button returns mrOK for modal dialogs.
git-svn-id: trunk@15368 -
This commit is contained in:
parent
eb8998e206
commit
bc0e2703a9
@ -1056,7 +1056,10 @@ begin
|
||||
{ Handles the "OK" button in the title bar of dialogs }
|
||||
if Lo(wParam) = IDOK then
|
||||
begin
|
||||
SendMessage(Window, WM_CLOSE, 0, 0);
|
||||
if (lWinControl is TCustomForm) and (fsModal in TCustomForm(lWinControl).FormState) then
|
||||
TCustomForm(lWinControl).ModalResult := mrOK
|
||||
else
|
||||
SendMessage(Window, WM_CLOSE, 0, 0);
|
||||
end
|
||||
else
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user