April White:
> However I would like to have the selected line in the middle of the
> screen. Is there a method that will do so? I've look in the .iface
> file but cannot locate anything.
function centredOn(line)
local topLineWanted = editor:VisibleFromDocLine(line) -
editor.LinesOnScreen / 2
editor:LineScroll(0, topLineWanted - editor.FirstVisibleLine)
end
Neil
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest