Website info
More info/contact
Unique visitors: 263349
Copyright 1999 - 2017
Bak-O-Soft (Poul Bak)
Rewards
Host
Hosted by:
PBClipboard
PBClipboard

Version 1.20.00.00.

PBClipBoard is a small component that monitors the clipboard. It has only one property, the 'Onchange' event, that triggers whenever the contents of the clipboard changes. Use it to automatically enable/disable 'Paste'-buttons or to view the contents of the clipboard.

How to use: Drop a PBClipBoard component on the form. Write an Onchange event-handler to enable/disable the paste buttons. That's all.

Note: When PBClipBoard has loaded, the first 'OnChange' event occurs. That is: All the controls have been created, so enabling/disabling buttons will work, but the form's 'Oncreate' handler has not run, so if you create any objects there, they have not been created, when the first 'OnChange' triggers.

Example of use:

procedure Form1.PBClipBoard1Change(Sender : TObject);
begin
  if ClipBoard.HasFormat('CF_TEXT') then Paste.Enabled := True;
end;