Is this a bug or not?:
I'm saving position of the scrollbars and then trying to restore them to get back to the previous location(view) in a TMemo....
Var
M:TPoint;
begin
Form1.Memo1.ScrollBars:=ssAutoBoth;
M.X:=Form1.Memo1.HorzScrollBar.Position;
M.Y:=Form1.Memo1.VertScrollBar.Position;
.....
..... // some changes in the Memo1's contents
.....
Form1.Memo1.HorzScrollBar.Position:=M.X;
Form1.Memo1.VertScrollBar.Position:=M.Y;
end;
If M.X was 15, then at the end the HorzScrollBar.Position will be 15-1=14. Same for M.Y and VertScrollBar.Position, if M.Y=27, then the value will be 27-1=26. I can't set them to initial values, even with M.X+1
Is this a bug?