This is a non-visual Delphi component.
It registers a hidden window as a "clipboard viewer" which means that the component is notified by Windows of any changes to the contents of the clipboard. On receipt of these notifications the component triggers an event. By handling the event your application can respond to changes on the clipboard.
The component can be used as the heart of a program that displays "live" information about the clipboard or simply to enable and disable other components that should only be enabled when the clipboard has valid contents.
The component provides an Enabled property to switch its event triggering on and off and a TriggerOnCreation property that causes the event to be triggered when the control is created, regardless of whether the clipboard has changed at that time.
The component should work with any 32 bit version of Delphi. .NET versions of Delphi are not supported.
The Clipboard Viewer Component and its documentation are supplied in a zip file. Before installing you need to extract all the files from the zip file, preserving the directory structure. The following files will be extracted:
PJCBView.pas
– Component source
code.
PJCBView.dcr
– Component palette
glyph.
PJCBView.hlp
– Help file that integrates with the
Delphi 3-7 IDE.
PJCBView.als
– Keyword file required when integrating
the help file with Delphi 6 and 7.
ReadMe.htm
– This read-me file.
ChangeLog.txt
– Change log.
MPL.txt
– Mozilla Public License v1.1.
Wiki.URL
– Shortcut to online component Wiki.
In addition to the above files you will find the source code of the demo
project the Demo
sub-directory.
You can now install the components into the Delphi IDE. To do this, the
files PJCBView.pas
and PJCBView.dcr
should be
added to a design time package. If you need help doing this see here.
Note that the help file included in the download can only integrate with the IDE in Delphi 4-7. For information on how to do this, see this article. Users of other versions of Delphi can either use the help file as a stand-alone file (in which case some links won't work) or you can use the Clipboard Viewer Component Wiki.
Source code for a program that demonstrates the component is included in the download.
A complete change log is provided in a text file that is included in the download.
This product, Clipboard Viewer Component, is subject to the Mozilla Public License Version 1.1 (the "License"). You may not use this Product except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/MPL-1.1.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.
The Initial Developer of Clipboard Viewer Component is Peter D Johnson. Portions created by the Initial Developer are Copyright © 1999-2010 Peter D Johnson (www.delphidabbler.com). All Rights Reserved.
All relevant trademarks are acknowledged.
Bugs can be reported or new features requested via the Issue Tracker.
If no similar report or request has been recorded already, use the New Issue link to add a new issue. Please select the most appropriate template from the Templates drop down list.
I'm Peter Johnson – a hobbyist programmer living in Ceredigion in West Wales, UK, writing write mainly in Delphi. My programs and code are available from http://www.delphidabbler.com/.
I can be contacted via the website.