OnChange events
|
acClipboard
|
property OnChange: TNotifyEvent;
|
The OnChange event occurs when the content of the clipboard changes.
|
|
Write the OnChange event handler to display the new content in the clipboard viewer window, or refresh the "Paste" menu items and buttons when the data with compatible format appears or disappears from the clipboard.
|
The OnChange event only occurs if Active property is True. Set Active to True if you wish to monitor the clipboard for changes, or set it to False to disable monitoring.
|
procedure TacFormHelpEditor.acClipboard1Change(Sender: TObject);
|
begin
|
PasteTextItem.Enabled := acClipboard1.HasFormat(CF_TEXT);
|
|
// here is an alternative
|
PasteBitmapItem := acClipboard1.HasFormat('BITMAP'); // <-- you can specify format name as string
|
end;
|
Active and AvailableFormats properties;
|
HasFormat, GetString and PutString methods;
|
OnChange event.
|