![]() |
![]() ![]() ![]() |
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.
|
![]() |
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.
|