fix: SetCursorPos

Questions and answers on how to use XLSSpreadSheet.
Post Reply
Alextp
Posts: 11
Joined: Wed May 04, 2011 2:02 pm

fix: SetCursorPos

Post 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.
Alextp
Posts: 11
Joined: Wed May 04, 2011 2:02 pm

Re: fix: SetCursorPos

Post by Alextp »

better 'Row >=' than 'Row >' as last row may be partially visible.
Post Reply