VBR, better is use topLineIndex() funstion. You know number of lines in the window - linesInWindow() Half of it is center line - caretY position. So you need to set top line to CaretY position - half of the lines in window
-- <http://forum.pspad.com/read.php?2,65966,65974> PSPad freeware editor http://www.pspad.com
