Page 1 of 1

fix: SetCursorPos

Posted: Tue May 10, 2011 2:25 pm
by Alextp
if (Col > FPanes[DEF_PANE].Columns.RightCol) or (Col < FPanes[DEF_PANE].Columns.LeftCol) then
FXLSSheet.LeftCol := Col;
if (Row > FPanes[DEF_PANE].Rows.BottomRow) or (Row < FPanes[DEF_PANE].Rows.TopRow) then
FXLSSheet.TopRow := Row;

else scroll "to top" (if row is higher than current row) is buggy.

Re: fix: SetCursorPos

Posted: Tue May 10, 2011 2:47 pm
by Alextp
better 'Row >=' than 'Row >' as last row may be partially visible.