Skip to content

goodogod/test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

test

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; 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published