(Gast)
n/a Beiträge
|
Re: Übersetzung Class MagneticWindow
10. Okt 2006, 17:10
Zitat von rayman:
Ich glaube er meint aber:
Delphi-Quellcode:
if (Abs(rcTmp.x1 - x1) < SnapWidth) then rcWnd.x1 := x1;
if (Abs(rcTmp.x1 - x2) < SnapWidth) then rcWnd.x1 := x2;
Nein..
Delphi-Quellcode:
Case True of
Abs(rcTmp.x1 - x1) < SnapWidth:
Begin
lOffx := x1 - rcTmp.x1;
end;
Abs(rcTmp.x1 - x2) < SnapWidth:
Begin
lOffx := x2 - rcTmp.x1;
end;
Abs(rcTmp.x2 - x1) < SnapWidth:
begin
lOffx := x1 - rcTmp.x2;
end;
Abs(rcTmp.x2 - x2) < SnapWidth:
begin
lOffx := x2 - rcTmp.x2;
end;
End;
gruß
|
|
Zitat
|