Mouse events and automatically displayed comments

Which methods and properties for mouse event I can use to have following functionality - when mouse cursor is located in certain position on string (in certain string range), then a certain text comment for this string range is automatically displayed in a separate textview window.