RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TOleGraphic.LoadFromClipboardFormat Method

Loads an OLE graphic from the Clipboard into the OLE graphic object.

Pascal
procedure LoadFromClipboardFormat(AFormat: Word; AData: THandle; APalette: HPALETTE); override;
C++
virtual __fastcall LoadFromClipboardFormat(Word AFormat, THandle AData, HPALETTE APalette);

LoadFromClipboardFormat is called if the OLE graphic is registered with the TPicture object using the RegisterClipboardFormat method. 

LoadFromClipboardFormat replaces the current image with the data pointed to by the AData parameter. The palette for the OLE graphic is specified by the APalette parameter. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!