Contents - Index - Previous - Next


OnPasteGraphics event



Applies to
TProfGrid component

Declaration
property OnPasteGraphics: TProfGridPasteGraphicsEvent;

Description

Occurs before some external graphics format is pasted from the Windows Clipboard into a grid cell.

That external graphics format can be, for example, an image copied to the Windows Clipboard from within Paint or another image editing software. Another example is a screenshot, produced by the <PrintScreen> or <Alt>+<PrintScreen> key press.

The CanPaste parameter can be set to False in the event handler to prevent pasting unwelcome data from the clipboard.

The graphic that is about to be pasted is accessible via the AGraphic parameter.