ImageEn, unit imageenproc |
|
TImageEnProc.CanCopyToClipboard
Declaration
function CanCopyToClipboard(Source: TIECopyPasteType = iecpAuto): Boolean;
Description
Returns true if a call to
CopyToClipboard is possible.
Possible values for
Source:
Item | Effect |
iecpAuto | Result will always be true, unless the image is blank |
iecpFullImage | Result will always be true, unless the image is blank |
iecpSelection | Result will be true if there is a valid selection in the associated TImageEnView |
iecpLayer | Result will be true if there is a layer selected in the associated TImageEnView which is not the background layer |
Note:
◼The
Source specified for
CanCopyToClipboard, must be the same as that you will use for
CopyToClipboard.
◼If the TImageEnProc is attached to a TIEBitmap, TImageEnMView or TImageEnFolderMView then only iecpFullImage is relevant (iecpAuto will have the same effect as iecpFullImage. iecpSelection and iecpLayer will always fail)
◼This method supports
PdfViewer if Source = iecpAuto
// Enable the Copy button if copying is possible
btnCopyToClipboard.Enabled := ImageEnView1.Proc.CanCopyToClipboard();
See Also
◼CanCutToClipboard◼CutToClipboard◼CopyToClipboard◼CanPasteFromClipboard◼PasteFromClipboard◼PointPasteFromClip