Board index » delphi » Strange Copy Behavior

Strange Copy Behavior


2004-05-03 06:51:46 AM
delphi258
Hello,
I'm using a freeware image display component called EDBImage that, amongst
other things, allows you to copy an image from the clipboard. What's
'strange' about this is - when I copy any image from the Internet (using IE
6) - whether using the menu or Ctrl-C - then paste it into the component
using the PasteFromClipbaord or Ctrl-V methods - everything works fine.
However, if I try the same from my local hard using Windows Explorer drive,
it won't work?????? How would the component know the difference between the
Internet and my local drive - and why would it matter in the first place??
I'm sure the image (doesn't matter if BMP, GIF, JPEG, etc.) is actually
copied to the clipboard when testing from my local drive because I can paste
it into other applications. Unfortunately, I cannot locate the author of
the component for assistance.
I'm I going crazy or am I missing something? Using D5 Ent SP1, on WinXP
 
 

Re:Strange Copy Behavior

Im not sure, but i believe the "copy" from drive just copies the filenames,
while in internet explorer, the actual graphics-data is uploaded to the
clipboard.
It would be the only logical explanation.
the other applications might support the "filename" stuff, so it loads the
data pointed to by the filename. Check the clipboard using a
clipboard-viewer and see if this is correct.
If so, use the clipboard functions in delphi to get the text string, then
attempt to load the image into a TPicture.
Jon Lennart Aasenden,
Norway
"Bill Stevens" <XXXX@XXXXX.COM>writes
Quote
Hello,

I'm using a freeware image display component called EDBImage that, amongst
other things, allows you to copy an image from the clipboard. What's
'strange' about this is - when I copy any image from the Internet (using
IE
6) - whether using the menu or Ctrl-C - then paste it into the component
using the PasteFromClipbaord or Ctrl-V methods - everything works fine.

However, if I try the same from my local hard using Windows Explorer
drive,
it won't work?????? How would the component know the difference between
the
Internet and my local drive - and why would it matter in the first place??
I'm sure the image (doesn't matter if BMP, GIF, JPEG, etc.) is actually
copied to the clipboard when testing from my local drive because I can
paste
it into other applications. Unfortunately, I cannot locate the author of
the component for assistance.

I'm I going crazy or am I missing something? Using D5 Ent SP1, on WinXP