Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.01.16;
Скачать: CL | DM;

Вниз

Как программно выделить полностью одну N строку в TMemo?   Найти похожие ветки 

 
JIMMI   (2003-01-07 15:33) [0]



 
Song ©   (2003-01-07 16:40) [1]

TMemo.SelStart/SelLength


 
JIMMI   (2003-01-07 16:45) [2]

Это понятно, но допустим, что я не знаю какой номер по порядку символа в начале строки! Мне дан только номер строки, которую нужно всю выделить!
Заранее благодарен!


 
Song ©   (2003-01-07 16:58) [3]

EM_LINEINDEX


 
JIMMI   (2003-01-07 18:02) [4]

Спасибо, но как этим пользоваться?


 
Song ©   (2003-01-07 18:04) [5]

An application sends an EM_LINEINDEX message to retrieve the character index of a line in a multiline edit control. The character index is the number of characters from the beginning of the edit control to the specified line.

EM_LINEINDEX
wParam = (WPARAM) line; // line number
lParam = 0; // not used; must be zero


Parameters

line

Value of wParam. Specifies the zero-based line number. A value of -1 specifies the current line number (the line that contains the caret).



Return Values

The return value is the character index of the line specified in the line parameter, or it is -1 if the specified line number is greater than the number of lines in the edit control.


 
JIMMI   (2003-01-07 18:49) [6]

Спасибо, а где можно найти описание всех этих messag (на русском)?


 
Song ©   (2003-01-07 18:51) [7]

В интернете.



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

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

Наверх




Память: 0.48 MB
Время: 0.03 c
3-48848
Weare
2002-12-23 14:00
2003.01.16
Excel и Delphi


14-49205
Dm9
2002-12-29 00:46
2003.01.16
Защита администратора


1-49064
Эдик Дятлов
2003-01-08 13:02
2003.01.16
Как приложение разработанное в Делфи 7 открыть в Делфи 5


14-49222
p@s
2002-12-27 10:28
2003.01.16
А вот такая задачка


3-48913
_Vovan_
2002-12-18 17:00
2003.01.16
Почему?