mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 13:49:32 +02:00
sparta: fix docked form preventing IDE from activating. Issue #29042
git-svn-id: trunk@51134 -
This commit is contained in:
parent
0ba709770d
commit
25ae0bc62e
@ -986,7 +986,7 @@ begin
|
||||
{$IFDEF USE_POPUP_PARENT_DESIGNER}
|
||||
LCLIntf.ShowWindow(FOwner.Handle, SW_SHOW);
|
||||
{$ELSE}
|
||||
if FOwner.ParentWindow = 0 then
|
||||
if FOwner.Parent = nil then
|
||||
LCLIntf.ShowWindow(FOwner.Handle, SW_SHOW);
|
||||
{$ENDIF}
|
||||
end;
|
||||
@ -996,7 +996,7 @@ begin
|
||||
{$IFDEF USE_POPUP_PARENT_DESIGNER}
|
||||
LCLIntf.ShowWindow(FOwner.Handle, SW_HIDE);
|
||||
{$ELSE}
|
||||
if FOwner.ParentWindow = 0 then
|
||||
if FOwner.Parent = nil then
|
||||
LCLIntf.ShowWindow(FOwner.Handle, SW_HIDE);
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
@ -967,7 +967,7 @@ var
|
||||
{$ENDIF}
|
||||
begin
|
||||
{$IFNDEF USE_POPUP_PARENT_DESIGNER}
|
||||
Form.ParentWindow := 0;
|
||||
Form.Parent := nil;
|
||||
Application.ProcessMessages; // For TFrame - System Error. Code: 1400. Invalid window handle.
|
||||
{$ENDIF}
|
||||
|
||||
@ -1507,7 +1507,7 @@ begin
|
||||
if LDesignForm <> nil then
|
||||
begin
|
||||
{$IFNDEF USE_POPUP_PARENT_DESIGNER}
|
||||
LDesignForm.Form.Form.ParentWindow := FindModulePageControl(LWindow).Resizer.FResizerFrame.pClient.Handle;
|
||||
LDesignForm.Form.Form.Parent := FindModulePageControl(LWindow).Resizer.FResizerFrame.pClient;
|
||||
{$ENDIF}
|
||||
PostMessage(LDesignForm.Form.Form.Handle, WM_BoundToDesignTabSheet, 0, 0);
|
||||
end;
|
||||
|
@ -117,7 +117,7 @@ begin
|
||||
FDesignedForm.RealPopupParent := nil;
|
||||
FDesignedForm.RealPopupParent := FindFirstFormParent;
|
||||
{$ELSE}
|
||||
FDesignedForm.Form.ParentWindow := FResizerFrame.pClient.Handle;
|
||||
FDesignedForm.Form.Parent := FResizerFrame.pClient;
|
||||
{$ENDIF}
|
||||
// for big forms (bigger than screen resolution) we need to refresh Real* values
|
||||
DesignedForm.RealWidth := DesignedForm.Width;
|
||||
|
Loading…
Reference in New Issue
Block a user