G
Guest
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?
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?