Вниз
Скачать: 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.014 c
3-23032
girl
2003-04-18 16:00
2003.05.08
DBASE-IV и MSSQL7


1-23124
Leviathan
2003-04-26 18:43
2003.05.08
Разобрать интегер на байты


4-23425
ers
2003-03-10 14:35
2003.05.08
Как узнать состояние окна?


1-23186
Timer
2003-04-23 20:13
2003.05.08
Символы в RXRichEdit


3-22983
denis24
2003-04-17 14:42
2003.05.08
помогите с запросом!




   Наверх