Noch nicht registriert? Registrier Dich jetzt!
Clipboard
Autor Thema
Profil
I am trying to use the global clipboard that is associated with Forms when I start the application.

I simply issued the Clipboard.Open(Form1.handle); and the compiler says

Unidentified identifier (Clipboard)

I tried to use Form1.Clipboard.Open(Form1.handle) and that did not help at all.

So what do I need to do in order to get access to its features?

Thanks,
MarkV
 
 
Profil Webseite
Hello!

The Class tCliboard is in the Unit "CLIPBRD.PAS"

And this Class is gerated in the Foms.pas in the Initialization-Part.

A example to use the clipboard look into the Unit "Graphics.pas" in the function "TBitmap.CopyToClipboard"

bye,
Wolfgang
 
 
Profil

OK, I've figured out a way that I can do this properly.

1. it seems that the clipboard isn't accessible directly as a property of the FORM.
2. it is fully implimented in TBitMap, TEdit, and at least one other class object.

So I've taken a TEdit item and placed it on my form, and turned it invisible. I can use the PasteFromClipBoard procedure to obtain the text clipboard contents into the TEXT property of the TEdit control.

From there I can use it as a string. And later on, when I need to place my results back into the clipboard, I can use the CopyToClipBoard procedure to handle that functionality.

Thanks for the help.

-MarkV