From 0b9954621a5f1219b4394c6c4e225d087edc1414 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 3 Aug 2011 12:08:51 +1000 Subject: Credit. --- doc/ScintillaHistory.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/ScintillaHistory.html') diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 5f2575fc4..57a476d80 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -380,6 +380,8 @@ Thomas Linder Puls Artyom Zuikov Gerrit + + Occam's Razor

-- cgit v1.3 From 0d8b08ab6fc0269adb6f31f73b45c67c7c88424d Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 6 Aug 2011 19:49:59 +1000 Subject: Credit. --- doc/ScintillaHistory.html | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/ScintillaHistory.html') diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 57a476d80..27430ae52 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -382,6 +382,7 @@ Gerrit Occam's Razor + Ben Bluemel

-- cgit v1.3 From 88bd2188c961dd57cc515b285fd7f4812888f5cf Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 4 Sep 2011 10:22:47 +1000 Subject: Autocompletion lists respond to mouse wheel events. Feature #3403600. From David Wolfendale. --- doc/ScintillaHistory.html | 1 + win32/PlatWin.cxx | 32 +++++++++++++++++++++++++++++++- win32/ScintillaWin.cxx | 7 +++++++ 3 files changed, 39 insertions(+), 1 deletion(-) (limited to 'doc/ScintillaHistory.html') diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 27430ae52..bfe47bebc 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -383,6 +383,7 @@ Occam's Razor Ben Bluemel + David Wolfendale

diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 6a2f103ba..0ccc8aa13 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1382,6 +1382,7 @@ class ListBoxX : public ListBox { PRectangle rcPreSize; Point dragOffset; Point location; // Caret location at which the list is opened + int wheelDelta; // mouse wheel residue HWND GetHWND() const; void AppendListItem(const char *startword, const char *numword); @@ -1409,7 +1410,7 @@ public: ListBoxX() : lineHeight(10), fontCopy(0), lb(0), unicodeMode(false), desiredVisibleRows(5), maxItemCharacters(0), aveCharWidth(8), parent(NULL), ctrlID(0), doubleClickAction(NULL), doubleClickActionData(NULL), - widestItem(NULL), maxCharWidth(1), resizeHit(0) { + widestItem(NULL), maxCharWidth(1), resizeHit(0), wheelDelta(0) { } virtual ~ListBoxX() { if (fontCopy) { @@ -1986,6 +1987,10 @@ LRESULT PASCAL ListBoxX::ControlWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPA } } return 0; + + case WM_MBUTTONDOWN: + // disable the scroll wheel button click action + return 0; } WNDPROC prevWndProc = reinterpret_cast(GetWindowLongPtr(hWnd, GWLP_USERDATA)); @@ -2097,6 +2102,31 @@ LRESULT ListBoxX::WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam } return ::DefWindowProc(hWnd, iMessage, wParam, lParam); + case WM_MOUSEWHEEL: + wheelDelta -= GET_WHEEL_DELTA_WPARAM(wParam); + if (abs(wheelDelta) >= WHEEL_DELTA) { + int nRows = GetVisibleRows(); + int linesToScroll = 1; + if (nRows > 1) { + linesToScroll = nRows - 1; + } + if (linesToScroll > 3) { + linesToScroll = 3; + } + linesToScroll *= (wheelDelta / WHEEL_DELTA); + int top = ::SendMessage(lb, LB_GETTOPINDEX, 0, 0) + linesToScroll; + if (top < 0) { + top = 0; + } + ::SendMessage(lb, LB_SETTOPINDEX, top, 0); + // update wheel delta residue + if (wheelDelta >= 0) + wheelDelta = wheelDelta % WHEEL_DELTA; + else + wheelDelta = - (-wheelDelta % WHEEL_DELTA); + } + break; + default: return ::DefWindowProc(hWnd, iMessage, wParam, lParam); } diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 9925a64bb..d1f450479 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -680,6 +680,13 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam break; case WM_MOUSEWHEEL: + // if autocomplete list active then send mousewheel message to it + if (ac.Active()) { + HWND hWnd = reinterpret_cast(ac.lb->GetID()); + ::SendMessage(hWnd, iMessage, wParam, lParam); + break; + } + // Don't handle datazoom. // (A good idea for datazoom would be to "fold" or "unfold" details. // i.e. if datazoomed out only class structures are visible, when datazooming in the control -- cgit v1.3 From 9b4a855ed7962ce5da8c3e538a38f3eb396a8cc7 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 6 Sep 2011 19:50:21 +1000 Subject: Updating for 2.29 release. --- doc/ScintillaDownload.html | 10 +++++----- doc/ScintillaHistory.html | 8 ++++++++ doc/index.html | 7 ++++--- version.txt | 2 +- win32/ScintRes.rc | 8 ++++---- 5 files changed, 22 insertions(+), 13 deletions(-) (limited to 'doc/ScintillaHistory.html') diff --git a/doc/ScintillaDownload.html b/doc/ScintillaDownload.html index a5fa814dc..8744778e8 100644 --- a/doc/ScintillaDownload.html +++ b/doc/ScintillaDownload.html @@ -25,9 +25,9 @@ @@ -41,7 +41,7 @@ containing very few restrictions.

- Release 2.28 + Release 2.29

Source Code @@ -49,8 +49,8 @@ The source code package contains all of the source code for Scintilla but no binary executable code and is available in
    -
  • zip format (1200K) commonly used on Windows
  • -
  • tgz format (1080K) commonly used on Linux and compatible operating systems
  • +
  • zip format (1200K) commonly used on Windows
  • +
  • tgz format (1080K) commonly used on Linux and compatible operating systems
Instructions for building on both Windows and Linux are included in the readme file.

diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index bfe47bebc..b9423780e 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -395,6 +395,14 @@ Icons Copyright(C) 1998 by Dean S. Jones
+

+ Release 2.29 +

+
    +
  • + Released 12 September 2011. +
  • +

Release 2.28

diff --git a/doc/index.html b/doc/index.html index 815f35d91..277165c19 100644 --- a/doc/index.html +++ b/doc/index.html @@ -9,7 +9,7 @@ - +
- + Windows   - + GTK+/Linux