Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

OnClipboardChanged event

Project: Clipboard Viewer Component

Unit: PJCBView

Class: TPJCBViewer

Applies to: ~>2.0

property OnClipboardChanged: TNotifyEvent;


This event is triggered when the clipboard contents change, providing that the Enabled property is True. You should handle this event to perform any processing you need to do when the clipboard content changes.

If both the TriggerOnCreation and Enabled properties are True then the event is also fired immediately after the component is created. This behaviour can be useful when you need to check the clipboard content at program start up as well as when the content changes. By using this feature you simply need to code the event handler and don’t need any special start up code.