I have a Find Previous/Next feature that highlights the found text in a DesktopTextArea. My problem is that it doesn’t bring the newly highlighted text into view.
I have tried the following but, while it moves the view, displays the wrong location on the line. Anyone got a hint?
RawTextEditor.SelectionStart = FoundStart RawTextEditor.SelectionLength = FindText.Length RawTextEditor.HorizontalScrollPosition = FoundStart * RawTextEditor.FontSize //needs pixels RawTextEditor.VerticalScrollPosition = RawTextEditor.LineNumber(FoundStart)