mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 01:54:51 +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 }
|
{ Handles the "OK" button in the title bar of dialogs }
|
||||||
if Lo(wParam) = IDOK then
|
if Lo(wParam) = IDOK then
|
||||||
begin
|
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
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user