Scintilla.Scroll Event

Topics: User Forum
Jun 12, 2008 at 12:32 PM
I may be confused about the use of this event; my understanding is that the event should fire if the Scintilla control scrolls.  However, the event never seems to fire.  Am I confused?  Or perhaps I must set some property to get the event to fire?  Thanks!

Coordinator
Jun 12, 2008 at 4:59 PM
The Scroll event is raised whenever the WM_HSCROLL or WM_VSCROLL messages are sent as the result of a user interacting with the scroll bars. As far as I know this should be working correctly.

However, as you may have discovered the Scintilla control can be scrolled without using the scroll bars. For example, using the arrow keys or typing at the edge of the control will also cause the text to scroll. Since these are not generated from the scroll bars, the Scroll event does not fire. Currently there is no way to detect this type of scrolling.

Hope this helps.


Thanks,
Jacob
Jun 12, 2008 at 10:19 PM
Ok.  I was indeed looking for a way to 'notice' that the control had scrolled 'by itself'; I will have to resort to some hackery.  Thanks!