Transfer the block to the Clipboard with SetClipboardData.
Copy data into the global memory block.
Allocate and lock a global memory block.
Empty current contents of the clipboard with Empt圜lipboard.
Sending custom format data to the clipboard is coded in the following way: 'OurFormat' and it will hold data from DelphiGuide variable filled in the OnCreate event and declared at the form level. Newly created clipboard format will be named: In the OnCreate procedure of the main form, so that we can use it later on during clipboard calls. Specifying a unique name for your new format - this enables us to copy and paste any type of data we want.įirst we have to register the CF_TMember format (that holds TMember type variable values), We register a new clipboard format by calling the RegisterClipboardFormat API function and We want to paste a variable of TMember type to the clipboard.īefore we can write information to the clipboard in a specific format, the format must be registered.