procedure TLayerViewer.InitialDisplayParams;
begin
FRealRange:=Rect(0, 0, FPaintBoxRef.Width, FPaintBoxRef.Height); // 哈哈
FViewRange:=Rect(0, 0, FPaintBoxRef.Width, FPaintBoxRef.Height);
FVertiCurViewPosition := 0;
FVertiMinViewPosition := 0;
FVertiMaxViewPosition := 0;
FVertiPositionPerChange := FVertiScrollbarRef.SmallChange;
FViewRange.Top:=FViewRange.Top + FVertiCurViewPosition;
FViewRange.Bottom:=FViewRange.Bottom + FVertiCurViewPosition;
if FHoriScrollbarOn then
begin
FHoriCurViewPosition := 0;
FHoriMinViewPosition := 0;
FHoriMaxViewPosition := 0;
FHoriPositionPerChange := FHoriScrollbarRef.SmallChange;
FViewRange.Left:=FViewRange.Left + FHoriCurViewPosition;
FViewRange.Right:=FViewRange.Right + FHoriCurViewPosition;
end;
end; -
Notifications
You must be signed in to change notification settings - Fork 0
goodogod/test
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published