Determining if there is an image in the clipboard
Posted on 2013-09-27
I am using Delphi 2010 and would like to be able to know if the content of the clipboard contains any images before I paste. I thought I could use clipboard.hasformat(CF_text) but this does not work if the content of the clipboard contains both images and text it returns true as I am wanting to prevent users from pasting images from the clipboard into a memo control.
Thanks for your help