mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 12:59:14 +02:00
LCL: TCustomForm.MakeFullyVisible, force SetBounds to interface, before Screen.MonitorFromWindow. Issue #034692
git-svn-id: trunk@60521 -
This commit is contained in:
parent
3d8420c410
commit
b10aae8c1c
@ -2399,8 +2399,12 @@ begin
|
|||||||
Result := nil;
|
Result := nil;
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
if HandleAllocated then
|
if HandleAllocated then begin
|
||||||
Result := Screen.MonitorFromWindow(Handle, mdNearest)
|
// ensure widgetset has latest coordinates // invisible forms are not updated by DoSendBoundsToInterface
|
||||||
|
if (not HandleObjectShouldBeVisible) then
|
||||||
|
TWSWinControlClass(WidgetSetClass).SetBounds(Self, Left, Top, Width, Height);
|
||||||
|
Result := Screen.MonitorFromWindow(Handle, mdNearest);
|
||||||
|
end
|
||||||
else
|
else
|
||||||
Result := Screen.MonitorFromPoint(point(Left,Top));
|
Result := Screen.MonitorFromPoint(point(Left,Top));
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user