Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Основная";
Текущий архив: 2005.02.06;
Скачать: [xml.tar.bz2];

Вниз

RichEdit и поиск текста   Найти похожие ветки 

 
salexn   (2005-01-20 14:31) [0]

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


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

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


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

Да, чувак


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

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

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


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

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


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

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


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

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

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


 
Fay ©   (2005-01-21 11:06) [7]

Убери stWholeWord


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

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


 
Fay ©   (2005-01-21 11:31) [9]

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 12:27) [10]

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


 
Fay ©   (2005-01-21 13:24) [11]

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


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

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

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


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

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


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

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


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

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



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

Форум: "Основная";
Текущий архив: 2005.02.06;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.48 MB
Время: 0.035 c
1-1106578926
viola
2005-01-24 18:02
2005.02.06
Как изменить цвет фона некоторой строки StringGrid-а


3-1104183652
sergik
2004-12-28 00:40
2005.02.06
BDE и Oracle


14-1105964746
kai
2005-01-17 15:25
2005.02.06
печать в postscript


9-1099279970
VolanD666
2004-11-01 06:32
2005.02.06
Описание *.mdl


9-1099165943
Домовенок
2004-10-30 23:52
2005.02.06
[GLScene] FPSMovementManager





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский