- Moderated by:
- Admins-Forum
-
- registered:
- February 2008
- Status:
- offline
- last visit:
- 06.01.10
- Posts:
- 15
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 -
- registered:
- December 2006
- Status:
- offline
- last visit:
- 28.06.10
- Posts:
- 82
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 -
- registered:
- February 2008
- Status:
- offline
- last visit:
- 06.01.10
- Posts:
- 15
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