I want to show custom regions of interest on the .NET richtext control by
placing transparent controls on it in various shapes. For example, I want to
highlight a column of text such that the highlight follows the text when it
is scrolled.
To do this I need to prevent the control's native text selection operation.
I can easily accomplish that by placing a transparent panel over the richtext
control's client area, and then painting the controls on that.
However, the control's scrollbar thumbs don't raise any events that allow
the controls to track the position of the corresponding text. How can I
determine which text is visible after a scrolling action?

Signature
Tom Hintz
Ken Tucker [MVP] - 12 Sep 2004 17:39 GMT
Hi,
I make a control extender that uses the nativewindows class to
listen for scroll messages. It than uses an api call to get the scroll
position. maybe this will help
www.onteorasoftware.com/downloads/scrolllistener.zip
Ken
------------------
I want to show custom regions of interest on the .NET richtext control by
placing transparent controls on it in various shapes. For example, I want
to
highlight a column of text such that the highlight follows the text when it
is scrolled.
To do this I need to prevent the control's native text selection operation.
I can easily accomplish that by placing a transparent panel over the
richtext
control's client area, and then painting the controls on that.
However, the control's scrollbar thumbs don't raise any events that allow
the controls to track the position of the corresponding text. How can I
determine which text is visible after a scrolling action?

Signature
Tom Hintz