Board index » delphi » Clipboard Contents

Clipboard Contents

Is there any way to save the contents of the clipboard in memory? I need to
use the clipboard to perform an action, then restore it's original contents.

Thanks -

--
- Jimmy                                  -
------------------------------------------
- http://www.used-disks.com/Programming/ -
------------------------------------------
- No direct email unless requested       -
:

 

Re:Clipboard Contents


Look at TClipboard.GetAsHandle.

John Pierce

Re:Clipboard Contents


Quote
> Look at TClipboard.GetAsHandle.

Unfortunately I don't know what's going to be in the clipboard (text,
pictures, both, something else) so I can't use this.

--
- Jimmy                                  -
------------------------------------------
- http://www.used-disks.com/Programming/ -
------------------------------------------
- No direct email unless requested       -
:

Re:Clipboard Contents


Check TClipboard.HasFormat first, then act accordingly.

John Pierce

Re:Clipboard Contents


Quote
In article <3a8ab9ff_1@dnews>, Jimmy (Used-Disks) wrote:
> Is there any way to save the contents of the clipboard in memory?

Yes, in principle, but it is absolutely impractical in praxi. The problem is
that you simply cannot restore the clipboard to its original state exactly.
Don't waste any time on this, better look for some way to do your "action"
without involving the clipboard.

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
Note: I'm unable to visit the newsgroups every day at the moment,
so be patient if you don't get a reply immediately.

Other Threads