================================================================================
Clipboard Viewer Component - Demo Program Notes

Any copyright in this file is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/

================================================================================

The demo program provides an example of how to use the Clipboard Viewer
Component.

The program's main form contains a TPJCBViewer component, a TButton and a TMemo.
It also uses the Clipboard global object that is defined in the Clipbrd unit.
There are two event handlers:

  * An OnClipboardChanged handler for the TPJCBViewer component. This simply
    beeps to let you know the clipboard content has changed then enables or
    disables the button depending on if there is text on the clipboard.

  * An OnClick handler for the button. This is only triggered if the button is
    enabled, i.e. if there is text on the clipboard. The handler simply displays
    the text from the clipboard in the memo control.

Because TPJCBViewer's TriggerOnCreation property is true by default, an
OnClipboardChanged event is triggered as the program starts. The beep that is
generated by the event handler proves this. Try changing the TriggerOnCreation
property to False to see the difference. There will be no beep when the program
starts and the button will remain disabled regardless of whether there is text
on the clipboard or not.

The demo requires Delphi 7 or later to compile. Simply open the .dpr file in any
supported version of the program and compile to create a 32-bit Windows
executable. Using Delphi XE2 or later the demo can also be compiled as a 64-bit
Windows executable simply by adding a Windows 64 bit target and performing a
full re-build.

Should you want to compile the program in more than one version of Delphi you
are advised to perform each compilation from a fresh copy of the demo source
code.
--------------------------------------------------------------------------------
