Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.05.08;
Скачать: 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 вся ветка

Текущий архив: 2003.05.08;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.021 c
14-23358
Дмитрий К.К.
2003-04-21 07:05
2003.05.08
Именинники 21 апреля


14-23292
sashas
2003-04-22 14:41
2003.05.08
Подскажите статью или что-то типа.


1-23113
real_fatboy
2003-04-27 13:40
2003.05.08
Уходим в трэй


14-23323
Top Gun
2003-04-07 19:42
2003.05.08
Что такое стек ?


3-22972
Jaxtor
2003-04-17 11:22
2003.05.08
Параметры, InsertSQL в IBDataSet