Наши проекты:
Журнал · Discuz!ML · Wiki · DRKB · Помощь проекту |
||
ПРАВИЛА | FAQ | Помощь | Поиск | Участники | Календарь | Избранное | RSS |
[18.117.137.64] |
|
Сообщ.
#1
,
|
|
|
Необходимо вставить несколько символов в TEdit НО С ПОЗИЦИИ КУРСОРА. Т.е. задача сводится к тому чтобы узнать сколько символов перед курсором. Стандартных методов я не нашел. Может у кого есть оригинальные идеи???
|
Сообщ.
#2
,
|
|
|
Никаких оригинальных идей.. Плохо искал...
Что может быть проще чем SelStart? Вот что в хелпе написано, читай внимательнее: ----------------------cut------------------- Specifies the position of the first selected character in the text. property SelStart: Integer; Description Read SelStart to determine the position of the first selected character, where 0 indicates the first character. If there is no selected text, SelStart indicates the position of the cursor. Set SelStart to remove the current selection and position the cursor just before the indicated character. To select a particular range of the text, first set SelStart to position the cursor, and then set SelLength to extend the selection. |