🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages Started by Danny Sat, 30 Sep 2006 11:40
Message EM_FINDTEXT in TRichEdit
#3083
Author: Danny
Date: Sat, 30 Sep 2006 11:40
14 lines
1364 bytes
Hi at all.
I would want to find a text in a TRichEdit component in both the directions 
(up and down, like notepad); I have tried with the message EM_FINDTEXT, but 
the upward search don't work.

I know that upward search work on Microsoft Rich Edit 2.0 and later; and I 
think that the TRichEdit component, have load the version 1.0. Is it 
possible?
And is possible to load another library?

I use BCB6 on WinXP.

Thanks.
Bye 
Re: Message EM_FINDTEXT in TRichEdit
#3084
Author: Bob Gonder
Date: Sat, 30 Sep 2006 12:48
27 lines
2092 bytes
Danny wrote:

>I would want to find a text in a TRichEdit component in both the directions 
> I have tried with the message EM_FINDTEXT, but 
>the upward search don't work.
>
>I know that upward search work on Microsoft Rich Edit 2.0 and later; and I 
>think that the TRichEdit component, have load the version 1.0. Is it 
>possible?
>And is possible to load another library?
>
>I use BCB6 on WinXP.

Info about RichEdit versions: (long url, may wrap)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/aboutricheditcontrols.asp?frame=true

Includes the names of the dlls.
Suggests loading the library to make sure the correct version is
running:
<MSDN>
"Before creating a rich edit control, you should call the LoadLibrary
function to verify which version of Rich Edit is installed"</MSDN>

For XP you would want v3 or v4.

Info about EM_FINDTEXT and FR_DOWN : (long url, may wrap)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/richedit/richeditcontrols/richeditcontrolreference/richeditmessages/em_findtext.asp?frame=true
Re: Message EM_FINDTEXT in TRichEdit
#3085
Author: Remy Lebeau (TeamB)
Date: Sat, 30 Sep 2006 18:36
15 lines
1392 bytes
"Danny" <danny2912@libero.it> wrote in message
news:451e57c0$1@newsgroups.borland.com...

> I would want to find a text in a TRichEdit component in
> both the directions (up and down, like notepad)

TRichEdit uses the Win32 RichEdit v1.0 control, which does not support
searching upwards.  That was introduced in v2.0, which TRichEdit cannot use.

Go to http://home.att.net/~robertdunn/Yacs.html for information about how to
use newer RichEdit versions in BCB.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads