Перейти на строку в RichEdit
Falk0ner, вс, 06/07/2008 - 15:34.
Перейти на строку в RichEdit
with Richedit1 do
begin
selstart := perform( EM_LINEINDEX, linenumber, 0 );
perform( EM_SCROLLCARET, 0, 0 );
end;
{
The EM_LINEINDEX message returns the character index of the first character
on a given line, assigning that to selstart moves the caret to that position.
The control will only automatically scroll the caret into view if it has
the focus, thus the EM_SCROLLCARET.
}
begin
selstart := perform( EM_LINEINDEX, linenumber, 0 );
perform( EM_SCROLLCARET, 0, 0 );
end;
{
The EM_LINEINDEX message returns the character index of the first character
on a given line, assigning that to selstart moves the caret to that position.
The control will only automatically scroll the caret into view if it has
the focus, thus the EM_SCROLLCARET.
}
http://delphiworld.narod.ru/ DelphiWorld 6.0
Отправить комментарий