Вниз
Скачать: 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-23379
Stranger
2003-04-18 14:45
2003.05.08
Нужен файл vcl.dcp для Delphi6


1-23217
Last
2003-04-25 13:20
2003.05.08
QuickReport


3-23012
rex
2003-04-18 09:34
2003.05.08
Как подключиться к БД обойдя запрос пароля ?


1-23167
Manulo
2003-04-24 14:20
2003.05.08
Динамическое создание компонентов.


1-23209
Viktor1
2003-04-24 15:37
2003.05.08
Как в Edit1 выровнять текст по центру относительно верх-низ.




   Наверх