Hi mivchart,
Apparently it seems to be a problem with the Horizontal and Vertical scrollbars that should be reset to 0. The problem then is that the Position property is read-only so the following code isn't accepted:
- Code: Select all
procedure TForm1.Track_ZoomChange(Sender: TObject);
begin
// Change zoom
Tree1.View3DOptions.Zoom:=Track_Zoom.Position;
LabelZoom.Caption:=TeeStr(Tree1.View3DOptions.Zoom)+'%';
Tree1.Draw();
Tree1.Draw();
end;
procedure TForm1.Tree1AfterDraw(Sender: TObject);
begin
Tree1.VertScrollBar.Position:=0;
Tree1.HorzScrollBar.Position:=0;
end;
But it will be accepted if you change TTreeScrollBar's Position property definition TeeTree.pas from:
- Code: Select all
property Position:Integer read GetPosition;
To this:
- Code: Select all
property Position:Integer read GetPosition write SetPosition default 0;
I've seen that you are source code customer so, please, try with the changes above and tell us if it works better.
Also note that 8.04 is not the latest version available so, please, try with the latest (8.07).