🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5624

Re: How to be aware that some text was dropped in a RichEdit?

#5624
From: Remy Lebeau (TeamB)
Date: Thu, 04 Aug 2005 20:48
17 lines
1653 bytes
"Michel Corbin" <"Michel Corbin"> wrote in message
news:42f27aad@newsgroups.borland.com...

> In a RichEdit, the user can select some text and drag it
> to another place in the RichEdit and drop it there.
> How can I know that such a drop has been just completed?
> Is there some message to intercept?

The only notification that occurs is EN_CHANGE (the OnChange event).  You'll
have to figure out manually what the change actually was, though.  Perhaps
you can use the EN_SELCHANGE notification (the OnSelectionChange event) to
keep track of when the user selects text, and then when EN_CHANGE occurs,
check of the previous selection has changed and what the new selection is.


Gambit
Technical Details
Message-ID: <42f27f55@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42f27aad@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9167ab63709955e0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42f27aad@newsgroups.borland.com>
Subject: Re: How to be aware that some text was dropped in a RichEdit?
Date: Thu, 4 Aug 2005 13:48:26 -0700
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42f27f55@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123188565 68.69.17.41 (4 Aug 2005 13:49:25 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail