Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

RichEdit и поиск текста


salexn ©   (2005-01-20 14:31:00) 

Кто-нить юзал TJvxRichEdit(из JVCL)? Если да, то скажите, работает ли у не го метод FindText? И можно ли как-то найти текст по другому, не юзая этот метод


salexn   (2005-01-24 12:34:00) [1]

Полный прикол! Что это за грабли? Если мышкой кликнуть по RichEdit - то он ищет! Если RichEdit не имеет фокус - то не ищет! Как бороться? Иногда RichEdit невидим, но парсить текст нужно! Хелп плиз!!!


salexn   (2005-01-21 19:08:00) [2]

сам и отвчу... нет не может :-)


salexn   (2005-01-21 19:06:00) [3]

Может ли он не искать текст из-за того, что RichEdit невидим?(Visible = False)


salexn   (2005-01-21 16:19:00) [4]

>Fay
Спасибо за инфу.

А че это какие-то спецсимволы что ли? И какие еще есть символы, которые лучше не писать?


Fay   (2005-01-21 13:24:00) [5]

2 salexn   (21.01.05 12:27) [10]
Есть такая фигня.


salexn   (2005-01-21 12:27:00) [6]

Обнаружил следующий прикол
В едиторе есть строки вида <<ТЕКСТ>>. Если искать ТЕКСТ, то находит, а если искать <<ТЕКСТ>> - то уже не ищет. В чем прикол?


Fay   (2005-01-21 11:31:00) [7]

EM_FINDTEXT
The EM_FINDTEXT message finds text within a rich edit control.

To send this message, call the SendMessage function with the following parameters.

SendMessage(
 (HWND) hWnd,              // handle to destination window
 EM_FINDTEXT,              // message to send
 (WPARAM) wParam,          // search options
 (LPARAM) lParam           // text information (FINDTEXT *)
);
Parameters
wParam
Specify the parameters of the search operation. This parameter can be one or more of the following values. Value Description
FR_DOWN Rich Edit 2.0 and later: If set, the search is from the end of the current selection to the end of the document. If not set, the search is from the end of the current selection to the beginning of the document.
Rich Edit 1.0: The FR_DOWN flag is ignored. The search is always from the end of the current selection to the end of the document.

FR_MATCHALEFHAMZA Rich Edit 3.0 and later: If set, the search differentiates between Arabic alefs with different accents. If not set, all alefs are matched by the alef character alone.  
FR_MATCHCASE If set, the search operation is case-sensitive. If not set, the search operation is case-insensitive.  
FR_MATCHDIAC Rich Edit 3.0 and later: If set, the search operation considers Arabic and Hebrew diacritical marks. If not set, diacritical marks are ignored.  
FR_MATCHKASHIDA Rich Edit 3.0 and later: If set, the search operation considers Arabic kashidas. If not set, kashidas are ignored.  
FR_WHOLEWORD If set, the operation searches only for whole words that match the search string. If not set, the operation also searches for word fragments that match the search string.

lParam
Pointer to a FINDTEXT structure containing information about the find operation.
Return Values
If there are more matches, the return value is the zero-based character position of the next match.

If there are no more matches, the return value is –1.

Requirements
 Windows NT/2000/XP: Included in Windows NT 4.0 and later.
 Windows 95/98/Me: Included in Windows 95 and later.
 Header: Declared in Richedit.h.
 Unicode: Declared as Unicode and ANSI messages.


salexn   (2005-01-21 11:17:00) [8]

>Fay
Не помогло :-(


Fay   (2005-01-21 11:06:00) [9]

Убери stWholeWord


salexn   (2005-01-21 10:34:00) [10]

>Eraser
S := Format(cValue, [AnsiLowerCase(AFieldCaption)]);
FoundAt := AEditor.FindText(S, 0, AEditor.GetTextLen, [stWholeWord, stSetSelection]);

Че здесь неправильного? Не ищет. Хоть подстрока S ТОЧНО есть


Eraser   (2005-01-21 00:50:00) [11]

KilkennyCat ©
Ещё как прилагается. Скачать можно там же где и набор компонентов.(весит 11 метров ;-))


KilkennyCat   (2005-01-21 00:44:00) [12]

а справка к компоненту не прилагается?


Eraser   (2005-01-21 00:40:00) [13]

salexn
Вчера установил тоже. Супер!!!
Кто нибудь знает, как в этом же компоненте каким-либо образом идентифицировать вставленные изображения.

По сабжу. ->> Всё работает.


salexn   (2005-01-20 18:38:00) [14]

Да, чувак


WhiteGuy   (2005-01-20 15:36:00) [15]

Чувак, ты юзаешь компонент чёто типа Jedi VCL??


Наверх

Титульная страница Поиск, карта сайта Написать письмо