Вниз
Скачать: CL | DM;

Надо прокрутить RichEdit...   Найти похожие ветки 

 
KA-87 ©   (2003-04-20 12:45) [0]

{Чего надо добавить, чтобы прокрутить RichEdit к тому месту, где найден текст}
procedure TMainForm.FindDialogFind(Sender: TObject);
var
FoundAt: Longint;
StartPos,ToEnd: Integer;
begin
{reEditor = TRichEditor}
if reEditor.SelLength<>0 then
StartPos:=reEditor.SelStart+reEditor.SelLength
else
StartPos:=0;
ToEnd:=Length(reEditor.Text)-StartPos;
FoundAt:=reEditor.FindText(FindDialog.FindText,StartPos,ToEnd,[stMatchCase]);
if FoundAt<>-1 then
begin
reEditor.SelStart:=FoundAt;
reEditor.SelLength:=Length(FindDialog.FindText);
reEditor.SetFocus;
end;
end;


 
Song ©   (2003-04-20 13:38) [1]

EM_SCROLLCARET


 
KA-87 ©   (2003-04-20 21:07) [2]

to [Song] Спасибо - помог ;)



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.012 c
14-23369
Marser
2003-04-15 22:46
2003.05.08
C++ Builder


7-23407
[BAD]Angel
2003-03-16 21:08
2003.05.08
Как выключить комп?


1-23176
vvvaaa
2003-04-24 07:32
2003.05.08
Как запускать вайсы со своим расширением?


6-23256
CYBERDANYA
2003-03-12 22:56
2003.05.08
Proxy на Indy в Delphi 6


14-23346
sashundra
2003-04-18 15:17
2003.05.08
с Fox Pro yf на Delphi




   Наверх