So I decided it would be far easier from the user interface perspective if I allowed users to drop image files dragged from browser sessions directly onto their control, instead of having to first download load them and then pick them from a directory.
However... the Ole control on this proves to be very complicated, and as yet, I can't figure it out, so seeking some guidance from the community.
It's fairly straight forward at the conceptual level. I have an Image object that has all the necessary OLE bits turned on to accept a Ole drop. But I can't figure out once I drop my item on it, how to manipulate it. (I can create a messagebox that states "Something was dropped" but that's about the extent.
I assume that what is being dropped when dragging an image from a web page is a reference to the image (the name of the file and it's location). If I drag and drop it into a directory in windows, the file just appears there as <filename.ext> and the browser completes a "Download" (shows me on the result bar that the file is there). So obviously windows can handle this kind of "understanding" of what the object is.
How do I manipulate it in VFP to do the same thing? I assume that what I need to do is:
a) "recognize" the object
b) parse the object as some kind of array?
c) Save the image file somewhere (the somewhere is the easy part the "Tell VFP to Save something from the internet" part is what I don't understand how to "tell" it to do it.
d) update my control with reference to the object (also easy)
So steps c and d I think I can manage, it's the a and b that I'm totally stumpped over.
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."
However... the Ole control on this proves to be very complicated, and as yet, I can't figure it out, so seeking some guidance from the community.
It's fairly straight forward at the conceptual level. I have an Image object that has all the necessary OLE bits turned on to accept a Ole drop. But I can't figure out once I drop my item on it, how to manipulate it. (I can create a messagebox that states "Something was dropped" but that's about the extent.
I assume that what is being dropped when dragging an image from a web page is a reference to the image (the name of the file and it's location). If I drag and drop it into a directory in windows, the file just appears there as <filename.ext> and the browser completes a "Download" (shows me on the result bar that the file is there). So obviously windows can handle this kind of "understanding" of what the object is.
How do I manipulate it in VFP to do the same thing? I assume that what I need to do is:
a) "recognize" the object
b) parse the object as some kind of array?
c) Save the image file somewhere (the somewhere is the easy part the "Tell VFP to Save something from the internet" part is what I don't understand how to "tell" it to do it.
d) update my control with reference to the object (also easy)
So steps c and d I think I can manage, it's the a and b that I'm totally stumpped over.
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."