
Is it possible to be notified when the user scrolls in the Syntax Editor? I tried handling the Scroll event, but it is never fired.
Is it possible to be notified when the user scrolls in the Syntax Editor? I tried handling the Scroll event, but it is never fired.
Hello,
The WinForms SyntaxEditor currently has ViewHorizontalScroll and ViewVerticalScroll events you can watch.
Thanks for the info - those events seem to do what I want. Is there any way to get the current scroll value of the syntax editor's scroll bars? I didn't see anything in the EditorView class. In the SyntaxEditor class there are VerticalScroll and HorizontalScroll properties, but their Value property always seems to be 0 (likely for the same reason that the Scroll event never fires).
Hello,
Those two properties are inherited from the WinForms framework and aren't used by us. Each editor view has FirstVisibleX and FirstVisibleDisplayLineIndex properties, which are effectively the scroll bar values.
That looks like it will work for me. Thanks!
Please log in to a validated account to post comments.