Witam, mam taki problem, chodzi o to, że jak mam dłuższy text i nie mieści się w RichEdit i jak dam na szukaj to znajduje mi te wyrażenia ale nie chce schodzić niżej scrollbare automatycznie, trzeba to zrobić ręcznie, ma ktoś jakiś pomysł jak to można wyśrodkować z góry thx za pomoc a o to jaki mam kod na wyszukiwanie :D
procedure TForm1.FindDialog1Find(Sender: TObject);
var
Znalezione: LongInt;
Start, Koniec: Integer;
begin
with RichEdit1 do
begin
if SelLength <> 0 then
Start := SelStart + SelLength
else
Start := 0;
Koniec := Length(text) - Start;
Znalezione := FindText(FindDialog1.FindText, Start, Koniec, [stMatchCase]);
if Znalezione <> -1 then
Begin
SetFocus;
SelStart := Znalezione;
SelLength := Length(FindDialog1.FindText);
end;
end;
end;
Z góry thx
Może ktoś, coś napisać na ten temat? Czy to za trudne i nikt nie ma żadnych pomysłów?? Pls dajcie jakiś znak :D