Board index » delphi » Richedit Scrollbars
Tim Larcos
![]() Delphi Developer |
Tue, 13 Jan 2004 14:59:21 GMT
Richedit Scrollbars
Ok...i'm invoking a findtext command in a richedit?!
using this code.... procedure TForm1.Image3Click(Sender: TObject); begin StartPos := SelStart + SelLength StartPos := 0; { ToEnd is the length from StartPos to the end of the text in the rich ToEnd := Length(Text) - StartPos; FoundAt := FindText(Edit3.Text, StartPos, ToEnd, [stMatchCase]); procedure TForm1.ShowStuff; My question is HOW do i get the scrollbars to center the text it found i.e. |