Clipboard
-
- Registered: Feb 07, 2008
- Last visit: Jan 30, 2011
- Posts: 19
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
Regards, -
- Registered: Dec 04, 2006
- Last visit: Dec 29, 2011
- Posts: 89
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: Feb 07, 2008
- Last visit: Jan 30, 2011
- Posts: 19
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
Regards,
- Moderated by:
- Admins-Forum
Users on-line
- 0 users
This list is based on users active over the last 30 minutes.