BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Detect Paste Event?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Ralf
Guest





PostPosted: Fri Nov 28, 2003 4:33 pm    Post subject: Detect Paste Event? Reply with quote



Is it possible to detect a paste event for a Memo or RichEdit control? I
want to use this to modity the text to be pasted (remove CRs).

I realize that this could also be done in OnChange, but I need to check only
the Pasting (the rest WantReturns is taking care of).


Back to top
Ignacio Vazquez
Guest





PostPosted: Fri Nov 28, 2003 4:36 pm    Post subject: Re: Detect Paste Event? Reply with quote



"Ralf" <ralf@?tmx.de?> wrote in message 3fc778ef$1 (AT) newsgroups (DOT) borland.com...
Quote:
Is it possible to detect a paste event for a Memo or RichEdit control? I
want to use this to modity the text to be pasted (remove CRs).

You'll need to write a descendant and handle WM_PASTE manually.

Cheers,
Ignacio



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.