tatou
February 7th, 2000, 09:26 PM
i posted a similar question a few days ago about vertical scrolling...
i am creating a control that extends a richtextbox and autoformats all of its content. however, my formatting routine jumps the cursor back to the beginning. i now know how to store the currently scrolled vertical position, run my formatting routine, and jump back to its previously scrolled position - so that the user doesn't see any change - using the API.
(see http://codeguru.developer.com/bbs/wt/showpost.pl?Board=vb&Number=14499&page=0&view=collapsed&mode=threaded&sb=5)
is there a way to do this for the horizontal scroll position as well?
i am creating a control that extends a richtextbox and autoformats all of its content. however, my formatting routine jumps the cursor back to the beginning. i now know how to store the currently scrolled vertical position, run my formatting routine, and jump back to its previously scrolled position - so that the user doesn't see any change - using the API.
(see http://codeguru.developer.com/bbs/wt/showpost.pl?Board=vb&Number=14499&page=0&view=collapsed&mode=threaded&sb=5)
is there a way to do this for the horizontal scroll position as well?