Hello everyone,
this is my code:
richmemo1.SetFocus;
if richmemo1.Search(treeview1.Selected.Text,0,length(richmemo1.Text),[soMatchCase,soWholeWord],testo,testoLen) then
begin
richmemo1.SelStart := testo;
richmemo1.SelLength := testoLen;
end
It works, but the problem is that the selected result is always the last row of the Richmemo control. I'd like that highlighted text wold be positioned in the center.
How colud I do ?
Thank you