Project: Clipboard Viewer Component
Unit: PJCBView
Class: TPJCBViewer
Applies to: ~>2.0
property TriggerOnCreation: Boolean;
This property controls whether a clipboard change event is triggered when the component is created.
When TriggerOnCreation is True
the OnClipboardChanged event is triggered immediately after the component is created, regardless of whether the clipboard has changed. This behaviour is useful because you often 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.
When the property is False
the OnClipboardChanged event is only triggered when the content of the clipboard actually changes.
The default value is True
.
- This is a design-time only property. Setting it dynamically at run time will have no effect since the component will have been initialised before the user gets a chance to change the property's value.
- This property has no effect if Enabled is set to
False
at design time. In this case no event is fired after component creation, even if TriggerOnCreation isTrue
.