From 7ad772ff99465f07a6a7bae67bc9c2dc13c9ea23 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 2 Oct 2001 06:04:52 +0000 Subject: Patch from Mark to make the x offset accessible through the API. --- src/Editor.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index cbf3a951f..0730bc280 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3700,6 +3700,14 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { HorizontalScrollTo(xOffset + wParam * vs.spaceWidth); return TRUE; + case SCI_SETXOFFSET: + xOffset = wParam; + Redraw(); + break; + + case SCI_GETXOFFSET: + return xOffset; + case SCI_SCROLLCARET: EnsureCaretVisible(); break; -- cgit v1.2.3