Print Page | Close Window

Scrollbar events

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=16933
Printed Date: 27 December 2024 at 12:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Scrollbar events
Posted By: matt.dillard
Subject: Scrollbar events
Date Posted: 09 July 2010 at 11:53am
I'd love to get access to scrollbar events for the Syntax Edit class.

I'm trying to create a two-pane diff window, and I can't figure out a reliable way to sync up the two text views.  Ideally, whenever the user scrolls one of the views, the other one would follow suit.

I can get partway there by having a very fast timer that examines the TopRow of each pane to see if it has changed recently, but that's pretty ugly.  It's also only a partial solution, because I'd like for the horizontal scrollbars to match, too.

I know that the ReportControl allows external scrollbars to be attached, but there are some deficiencies there (e.g., after setting the .Value of a scrollbar programmatically, the scrollbar thumb is in the right place, but the ReportControl doesn't reflect the new position).



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net