Skip over navigation

Welcome to the all new DelphiDabbler website.

I hope you like it.

There are going to be bugs. Please report any you find on the website's issues page (GitHub account required). Thanks.

Click the close button and you won't see this message again.

Clipboard Viewer Component

Component that reports clipboard changes

Version 2.0.0
Released 10 Aug 2014
Platforms Win32 & Win64
Framework VCL
Compatibilty Delphi 7 and later

Overview

TPJCBView is a non-visual Delphi component that notifies the user whenever the content of the clipboard changes.

Notification is by means of 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. Alternatively it can be used to enable and disable other components whose state depends on the available clipboard formats.

TPJCBView provides an Enabled property that is used to enable and disable the component and hence it's events. It also has a TriggerOnCreation property that triggers an event when the control is created.

A demo program with an associated explanatory read-me file is included in the download. The demo enables and disables a button depending on whether the clipboard contains text. It can also display clipboard text in a memo.

Get The Code

You can download the latest version of the Clipboard Viewer Component directly from SourceForge as dd-cbview-2.0.0.zip.

Download v2.0.0

Clipboard Viewer Component is a sub-project of the DDabLib project which is maintained in a Subversion repository. The code is developed in the trunk/projects/cbview branch.

Subversion users can check out the source code of the current release from the repository on SourceForge by doing:

svn checkout http://svn.code.sf.net/p/ddablib/code/tags/projects/cbview/release-2.0.0 codedir

where codedir is the directory where you want to checkout code. To check out other versions, simply specify a different version number.

The latest development tree can be checked out using:

 svn checkout http://svn.code.sf.net/p/ddablib/code/trunk/projects/cbview codedir

Check outs are read only, but you can easily contribute code: see Feedback & Queries below.

Installation

The Clipboard Viewer Component and its its associated files 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.
  • ReadMe.htm – read-me file.
  • ChangeLog.txt – project's change log.
  • MPL-2.txt – the Mozilla Public License v2.0.
  • Documentation.URL – short-cut to the unit's online documentation.

In addition to the above files you will find the source code of the demo project in the Demo sub-directory.

You may now install the component 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.

Documentation

The Clipboad Viewer Component is comprehensively documented online here

The project's change log can be viewed on SourceForge

A read-me file (ReadMe.htm) is included in the project download.

Feedback & Queries

If you find any bugs or want to suggest a new feature please report them using the Issue Tracker.

Click the Create Ticket button to create a ticket then complete the form giving as much information as possible.

The issue tracker is shared among all the projects in the DelphiDabbler Code Library, so please make sure you enter cbview in the Project edit box to make it clear which project you are referring to. You should also choose Defect in the Type drop down list to report a bug or Enhancement to request a new feature.

If you have created a bug fix or have implemented a new feature please attach a zip file to your ticket that contains your source code.

Should you have any queries about using the component please read the documentation. If you can't find an answer in the documentation then post a message in the discussion group.

License

The Clipboard Viewer Component is open source. It is copyright © 1999-2014 by Peter Johnson. The source code is made available under the terms of the Mozilla Public License v2.0. All relevant trademarks are acknowledged.