mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 20:49:23 +02:00
* move windows is screen is to small, patch from mantis #23683
git-svn-id: trunk@35918 -
This commit is contained in:
parent
161ebef6b2
commit
3daee62509
@ -382,6 +382,8 @@ var W: PWindow;
|
|||||||
TP,TP2: TPoint;
|
TP,TP2: TPoint;
|
||||||
L: longint;
|
L: longint;
|
||||||
R: TRect;
|
R: TRect;
|
||||||
|
ZZ: byte;
|
||||||
|
Z: TRect;
|
||||||
begin
|
begin
|
||||||
XDataOfs:=0;
|
XDataOfs:=0;
|
||||||
Desktop^.Lock;
|
Desktop^.Lock;
|
||||||
@ -532,6 +534,29 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
W^.Hide;
|
W^.Hide;
|
||||||
|
ZZ:=0;
|
||||||
|
Desktop^.GetExtent(Z);
|
||||||
|
if R.A.Y>Z.B.Y-7 then
|
||||||
|
begin
|
||||||
|
R.A.Y:=Z.B.Y-7;
|
||||||
|
ZZ:=1;
|
||||||
|
end;
|
||||||
|
if R.A.X>Z.B.X-4 then
|
||||||
|
begin
|
||||||
|
R.A.X:=Z.B.X-4;
|
||||||
|
ZZ:=1;
|
||||||
|
end;
|
||||||
|
if R.A.Y<0 then
|
||||||
|
begin
|
||||||
|
R.A.Y:=0;
|
||||||
|
ZZ:=1;
|
||||||
|
end;
|
||||||
|
if R.A.X<0 then
|
||||||
|
begin
|
||||||
|
R.A.X:=0;
|
||||||
|
ZZ:=1;
|
||||||
|
end;
|
||||||
|
if ZZ<>0 then W^.MoveTo(R.A.X,R.A.Y);
|
||||||
W^.Number:=WI.WinNb;
|
W^.Number:=WI.WinNb;
|
||||||
Desktop^.Unlock;
|
Desktop^.Unlock;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user