Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jul : Re: Clipboard won't paste text

www.cryer.info
Managed Newsgroup Archive

Re: Clipboard won't paste text

Subject:Re: Clipboard won't paste text
Posted by:"Charles Hacker" (reply...@borland.newsgroups)
Date:Wed, 19 Jul 2006 11:12:55

"\"Mike Henry\" x.copper.net" wrote:
>
> I copied text from the editor to the clipboard, and the editor was able to paste it, but the code in the program wouldn't.
> >> When that code is called (via a button click) the text on the clipboard should
> >> appear in the edit control.  But nothing appears.  Those two lines are
> >> directly off of the Delphi help files.
> >

I think everyone is trying to explain that is is impossible to answer
your question without knowing more details.
In general the code:

if  Clipboard.HasFormat(CF_TEXT)  then
     Edit1.Text := Clipboard.AsText;

Should work, so why it is not working in your project requires more
information!

How about placing a sample code or app (in attachments group) that shows
this fault.  Then I or others could take a look.


--
Charles Hacker
Lecturer in Electronics and Computing
School of Engineering
Griffith University - Gold Coast
Australia

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive