TBaseVirtualTree.CopyToClipBoard Method

Virtual Tree View

Copies all currently selected nodes to the clipboard.

Pascal
procedure CopyToClipBoard; virtual;
Description

CopyToClipboard causes the tree to copy the currently selected nodes to the clipboard. Actually, Virtual Treeview maintains socalled delayed rendering. This means the participating nodes are marked as being in the current clipboard set (see vsCutOrCopy in TVirtualNodeStates) and only an IDataObject interface is placed onto the clipboard but no data yet. This avoids not only possibly huge memory requirements but it also avoids rendering data in a format which is not necessary. The application which pastes the clipboard content later will get the IDataObject interface and requests the format it can handle. The actual data is then rendered when the target application calls IDataObject.GetData, which results in a call to RenderOLEData.

Class
Links
What do you think about this topic? Send feedback!