mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-11 23:18:10 +02:00
win32: fix modal form showing when stay on top forms are visible (bug #0015636)
git-svn-id: trunk@25138 -
This commit is contained in:
parent
db1ba90fac
commit
6cbcdb2b75
@ -326,6 +326,7 @@ function TScreen.DisableForms(SkipForm: TCustomForm; DisabledList: TList = nil):
|
||||
var
|
||||
i: integer;
|
||||
AForm: TCustomForm;
|
||||
AppHandle: HWND;
|
||||
begin
|
||||
Result := DisabledList;
|
||||
if Result = nil then
|
||||
@ -345,6 +346,8 @@ begin
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
if WidgetSet.GetLCLCapability(lcApplicationWindow) = LCL_CAPABILITY_YES then
|
||||
EnableWindow(WidgetSet.AppHandle, False);
|
||||
end;
|
||||
|
||||
{
|
||||
@ -355,7 +358,10 @@ procedure TScreen.EnableForms(var AFormList: TList);
|
||||
var
|
||||
i: integer;
|
||||
AForm: TCustomForm;
|
||||
AppHandle: HWND;
|
||||
begin
|
||||
if WidgetSet.GetLCLCapability(lcApplicationWindow) = LCL_CAPABILITY_YES then
|
||||
EnableWindow(WidgetSet.AppHandle, True);
|
||||
if AFormList = nil then
|
||||
Exit;
|
||||
for i := AFormList.Count - 1 downto 0 do
|
||||
|
@ -74,6 +74,7 @@ type
|
||||
lcNeedMininimizeAppWithMainForm,
|
||||
// When main form is minimized, then minimize also app
|
||||
lcApplicationTitle, // Can change application title in runtime
|
||||
lcApplicationWindow, // Application has a special root window
|
||||
lcFormIcon, // Forms have icon
|
||||
lcModalWindow, // native modal windows support
|
||||
lcDragDockStartOnTitleClick // ability to start drag/dock events on title bar click
|
||||
|
@ -532,6 +532,7 @@ begin
|
||||
lcAsyncProcess: Result := LCL_CAPABILITY_YES;
|
||||
lcModalWindow: Result := LCL_CAPABILITY_NO;
|
||||
lcDragDockStartOnTitleClick: Result := LCL_CAPABILITY_YES;
|
||||
lcApplicationWindow: Result := LCL_CAPABILITY_YES;
|
||||
else
|
||||
Result := inherited;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user